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