Skip to content

Commit 459c603

Browse files
authored
fix: skip normalizing empty file paths (#1363)
1 parent 7d3b020 commit 459c603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/sources/filesystem/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ local follow_internal = function(callback, force_show, async)
3030
if vim.bo.filetype == "neo-tree" or vim.bo.filetype == "neo-tree-popup" then
3131
return false
3232
end
33-
local path_to_reveal = utils.normalize_path(manager.get_path_to_reveal())
33+
local path_to_reveal = utils.normalize_path(manager.get_path_to_reveal() or "")
3434
if not utils.truthy(path_to_reveal) then
3535
return false
3636
end

0 commit comments

Comments
 (0)