fix(#2928): nil explorer in parent move action (#2929)

This commit is contained in:
Lucas Reyna Córdoba 2024-09-25 09:23:57 +00:00 committed by GitHub
parent 8405ecfbd6
commit 0429f286b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,9 +10,8 @@ local M = {}
function M.fn(should_close)
should_close = should_close or false
local explorer = core.get_explorer()
return function(node)
local explorer = core.get_explorer()
node = lib.get_last_group_node(node)
if should_close and node.open then
node.open = false