fix: harden tree root cwd fetch (#2557)

Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
kezhenxu94 2023-11-26 06:39:19 +08:00 committed by GitHub
parent 5231562caf
commit 5e4475d8bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()