Skip to content

Commit fa61e06

Browse files
authored
fix(source_selector): check for tree before getting node text (#1913)
1 parent 4660041 commit fa61e06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/neo-tree/ui/selector.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ M.get_scrolled_off_node_text = function(state)
192192
return
193193
end
194194
end
195+
196+
if not state.tree then
197+
return
198+
end
199+
195200
local win_top_line = vim.fn.line("w0")
196201
if win_top_line == nil or win_top_line == 1 then
197202
return

0 commit comments

Comments
 (0)