From 5e4475d8bf7a3646164e01d9b65ef68369b17e3c Mon Sep 17 00:00:00 2001 From: kezhenxu94 Date: Sun, 26 Nov 2023 06:39:19 +0800 Subject: [PATCH] fix: harden tree root cwd fetch (#2557) Co-authored-by: Alexander Courtis --- lua/nvim-tree/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/core.lua b/lua/nvim-tree/core.lua index a109c995..251cb059 100644 --- a/lua/nvim-tree/core.lua +++ b/lua/nvim-tree/core.lua @@ -28,7 +28,7 @@ function M.get_explorer() end function M.get_cwd() - return TreeExplorer.absolute_path + return TreeExplorer and TreeExplorer.absolute_path end function M.get_nodes_starting_line()