chore: add guards to prepare setup refactoring

This commit is contained in:
kiyan
2022-02-11 11:06:11 +01:00
parent 0708a1c551
commit 0f7da146bf
5 changed files with 10 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ local function get_node_at_line(line)
end
function M.get_node_at_cursor()
if not TreeExplorer then return end
local winnr = view.get_winnr()
local hide_root_folder = view.View.hide_root_folder
if not winnr then