plenary.nvim
plenary.nvim copied to clipboard
fix(path): find_upwards() failure case is an infinite loop
The prior implementation had several implementation issues which caused an infinite loop if the search turned up empty.
This new implementation corrects the bounds check to stop searching once we've searched everywhere we can, and properly searches the root directory.
I'm not sure if this specific change is welcome here, but I also tweaked Path:joinpath to trim tailing separators to prevent double separators when joining on root.
@Conni2461 do you have any additional input on this? Would love to see this issue resolved.