We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ee11a commit a47907eCopy full SHA for a47907e
1 file changed
lua/plenary/path.lua
@@ -296,11 +296,7 @@ function Path:_st_mode()
296
end
297
298
function Path:joinpath(...)
299
- if string.char(self.filename:byte(-1)) == path.sep then
300
- return Path:new(self.filename:sub(0, -2), ...)
301
- else
302
- return Path:new(self.filename, ...)
303
- end
+ return Path:new(self.filename, ...)
304
305
306
function Path:absolute()
0 commit comments