Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting some behavior in Path:find_upwards #641

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

StefanZuefeldt
Copy link
Contributor

find_upwards fails on Windows systems, as it passes the incorrect argument type to path.root.

Additionally, find_upwards currently returns an empty string "" if no result is found.
This is incompatible with find_upwards returning a Path instance when a result is found.

@StefanZuefeldt
Copy link
Contributor Author

If you want me to revert the return value change, I can - it was just causing me a bit of grief expecting a nil value on failure to finally realize it was a string for some reason.

now calls Path:root properly, and
return nil at the end of execution instead of emptystring
@Conni2461
Copy link
Collaborator

thanks :) i rebased the branch, to fixup ci

@Conni2461 Conni2461 merged commit d5d8561 into nvim-lua:master Feb 11, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants