fix(close-node): do not close parent when current node is open (#1239)
This commit is contained in:
@@ -35,6 +35,11 @@ end
|
|||||||
|
|
||||||
function M.parent_node(should_close)
|
function M.parent_node(should_close)
|
||||||
return function(node)
|
return function(node)
|
||||||
|
if node.open then
|
||||||
|
node.open = false
|
||||||
|
return renderer.draw()
|
||||||
|
end
|
||||||
|
|
||||||
local parent = node.parent
|
local parent = node.parent
|
||||||
|
|
||||||
if not parent or parent.cwd then
|
if not parent or parent.cwd then
|
||||||
|
|||||||
Reference in New Issue
Block a user