Skip to content

Commit de75276

Browse files
committed
fix: add nil check to get_cwd
1 parent db796fc commit de75276

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)