fix(close-node): do not close parent when current node is open (#1239)

This commit is contained in:
Kiyan
2022-05-08 11:38:05 +02:00
committed by GitHub
parent a1600e57f2
commit d8aad37997

View File

@@ -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