Skip to content

Commit a77af2e

Browse files
Check for nil state.tree (#1558)
1 parent 0774fa2 commit a77af2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/sources/common/hijack_cursor.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ local hijack_cursor_handler = function()
2020
end
2121

2222
local state = manager.get_state(source, nil, winid)
23-
if state == nil then
23+
if state == nil or not state.tree then
2424
return
2525
end
2626
local node = state.tree:get_node()

0 commit comments

Comments
 (0)