Skip to content

Fix error caused by broken symlinks#494

Merged
kyazdani42 merged 1 commit intonvim-tree:masterfrom
sansone931:fix/broken-symlinks
Jul 7, 2021
Merged

Fix error caused by broken symlinks#494
kyazdani42 merged 1 commit intonvim-tree:masterfrom
sansone931:fix/broken-symlinks

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