Skip to content

Commit 5e4475d

Browse files
fix: harden tree root cwd fetch (#2557)
Co-authored-by: Alexander Courtis <alex@courtis.org>
1 parent 5231562 commit 5e4475d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function M.get_explorer()
2828
end
2929

3030
function M.get_cwd()
31-
return TreeExplorer.absolute_path
31+
return TreeExplorer and TreeExplorer.absolute_path
3232
end
3333

3434
function M.get_nodes_starting_line()

0 commit comments

Comments
 (0)