We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 418b1e8 commit f420daaCopy full SHA for f420daa
lua/nvim-tree/populate.lua
@@ -65,7 +65,7 @@ local function link_new(cwd, name)
65
local absolute_path = utils.path_join({ cwd, name })
66
local link_to = luv.fs_realpath(absolute_path)
67
-- if links to a file outside cwd, relative_path equals absolute_path
68
- local relative_path = link_to ~= nil and utils.path_relative(link_to, luv.cwd()) or nil
+ local relative_path = utils.path_relative(link_to, luv.cwd())
69
local stat = luv.fs_stat(absolute_path)
70
local open, entries
71
if (link_to ~= nil) and luv.fs_stat(link_to).type == 'directory' then
0 commit comments