Skip to content

Fix error caused by broken symlinks #494

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
Jul 7, 2021
Merged

Fix error caused by broken symlinks #494

merged 1 commit into from
Jul 7, 2021

Conversation

sansone931
Copy link
Contributor

Closes #493

When a symbolic link points to an invalid path, the value of link_to
equals nil. This value makes utils.path_relative throw an error,
since it expects a string as the first argument

When a symbolic link points to an invalid path, the value of `link_to`
equals `nil`. This value makes `utils.path_relative` throw an error,
since it expects a string as the first argument
@kyazdani42 kyazdani42 merged commit 933d69a into nvim-tree:master Jul 7, 2021
kyazdani42 added a commit that referenced this pull request Jul 19, 2021
@sansone931 sansone931 deleted the fix/broken-symlinks branch July 31, 2021 13:42
@sansone931 sansone931 restored the fix/broken-symlinks branch July 31, 2021 13:42
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
When a symbolic link points to an invalid path, the value of `link_to`
equals `nil`. This value makes `utils.path_relative` throw an error,
since it expects a string as the first argument
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.

Error when current directory contains invalid symbolic links
2 participants