From 459c60317cc1d251f6eb3b6f010d015d5d24b806 Mon Sep 17 00:00:00 2001 From: bwpge Date: Sun, 25 Feb 2024 09:53:01 -0500 Subject: [PATCH] fix: skip normalizing empty file paths (#1363) --- lua/neo-tree/sources/filesystem/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neo-tree/sources/filesystem/init.lua b/lua/neo-tree/sources/filesystem/init.lua index d2c4bda2..a6a3e4b2 100644 --- a/lua/neo-tree/sources/filesystem/init.lua +++ b/lua/neo-tree/sources/filesystem/init.lua @@ -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