fix(parent node): do not close folder when should_close is false

This commit is contained in:
kiyan 2022-05-08 13:30:57 +02:00
parent a448e66dde
commit 82a646225f

View File

@ -35,7 +35,7 @@ end
function M.parent_node(should_close)
return function(node)
if node.open then
if should_close and node.open then
node.open = false
return renderer.draw()
end