Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/plenary/path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ end

function Path:find_upwards(filename)
local folder = Path:new(self)
local root = path.root(folder)
local root = path.root(folder:absolute())

while folder:absolute() ~= root do
local p = folder:joinpath(filename)
Expand All @@ -938,7 +938,7 @@ function Path:find_upwards(filename)
end
folder = folder:parent()
end
return ""
return nil
end

return Path