From 0429f286b350c65118d66b646775bf187936fa47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Reyna=20C=C3=B3rdoba?= Date: Wed, 25 Sep 2024 09:23:57 +0000 Subject: [PATCH] fix(#2928): nil explorer in parent move action (#2929) --- lua/nvim-tree/actions/moves/parent.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/nvim-tree/actions/moves/parent.lua b/lua/nvim-tree/actions/moves/parent.lua index c9367763..dd04c365 100644 --- a/lua/nvim-tree/actions/moves/parent.lua +++ b/lua/nvim-tree/actions/moves/parent.lua @@ -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