Skip to content

Commit 0429f28

Browse files
authored
fix(#2928): nil explorer in parent move action (#2929)
1 parent 8405ecf commit 0429f28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: lua/nvim-tree/actions/moves/parent.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ local M = {}
1010
function M.fn(should_close)
1111
should_close = should_close or false
1212

13-
local explorer = core.get_explorer()
14-
1513
return function(node)
14+
local explorer = core.get_explorer()
1615
node = lib.get_last_group_node(node)
1716
if should_close and node.open then
1817
node.open = false

0 commit comments

Comments
 (0)