Skip to content

Commit

Permalink
Check for nil state.tree (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvonkaenel authored Sep 17, 2024
1 parent 0774fa2 commit a77af2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neo-tree/sources/common/hijack_cursor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local hijack_cursor_handler = function()
end

local state = manager.get_state(source, nil, winid)
if state == nil then
if state == nil or not state.tree then
return
end
local node = state.tree:get_node()
Expand Down

0 comments on commit a77af2e

Please sign in to comment.