Skip to content

Commit

Permalink
fix: skip normalizing empty file paths (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwpge committed Feb 25, 2024
1 parent 7d3b020 commit 459c603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neo-tree/sources/filesystem/init.lua
Expand Up @@ -30,7 +30,7 @@ local follow_internal = function(callback, force_show, async)
if vim.bo.filetype == "neo-tree" or vim.bo.filetype == "neo-tree-popup" then
return false
end
local path_to_reveal = utils.normalize_path(manager.get_path_to_reveal())
local path_to_reveal = utils.normalize_path(manager.get_path_to_reveal() or "")
if not utils.truthy(path_to_reveal) then
return false
end
Expand Down

0 comments on commit 459c603

Please sign in to comment.