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 28c9cdd commit d5d8561Copy full SHA for d5d8561
lua/plenary/path.lua
@@ -929,7 +929,7 @@ end
929
930
function Path:find_upwards(filename)
931
local folder = Path:new(self)
932
- local root = path.root(folder)
+ local root = path.root(folder:absolute())
933
934
while folder:absolute() ~= root do
935
local p = folder:joinpath(filename)
@@ -938,7 +938,7 @@ function Path:find_upwards(filename)
938
end
939
folder = folder:parent()
940
941
- return ""
+ return nil
942
943
944
return Path
0 commit comments