Skip to content

fix: use fs_realpath to normalize path #978

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

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

younger-1
Copy link
Contributor

I notice that path_normalize here is to change path like /home/young/foo/.. to /home/young.

But it may not handle paths like /home/young/../xavier correctly.

https://github.com/kyazdani42/nvim-tree.lua/blob/3f4ed9b6c2598ab8304186486a05ae7a328b8d49/lua/nvim-tree/utils.lua#L225-L229

@kyazdani42
Copy link
Member

kyazdani42 commented Feb 14, 2022

could you remove the utils code then please ? :)

@younger-1
Copy link
Contributor Author

could you remove the utils code then please ? :)

Done.

@kyazdani42
Copy link
Member

thanks :)

@kyazdani42 kyazdani42 merged commit fdf63e5 into nvim-tree:master Feb 15, 2022
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
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