Skip to content

Commit

Permalink
fix: harden tree root cwd fetch (#2557)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Courtis <alex@courtis.org>
  • Loading branch information
kezhenxu94 and alex-courtis authored Nov 25, 2023
1 parent 5231562 commit 5e4475d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-tree/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5e4475d

Please sign in to comment.