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

fix(utils): handle edge case for is_subpath #1655

Merged
merged 5 commits into from
Jan 14, 2025
Merged

Conversation

saytaM12
Copy link
Contributor

I noticed that when I renamed a file in neo-tree some of my opened buffers got changed weirdly. I tracked this to the is_subpath function.
The problem is with the following example

/home/user/project/file
/home/user/project/file_for_example

These paths would be matched as a correct subpath, even though they aren't.

I added a simple check I believe fixes this issue

@pynappo pynappo changed the title Fix login in utils.is_subpath funciton fix(utils): handle edge case for is_subpath Jan 14, 2025
@pynappo pynappo merged commit 83222b3 into nvim-neo-tree:main Jan 14, 2025
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