fix(get-node-from-path): group dirs should be returned before nodes

This commit is contained in:
kiyan 2022-07-06 14:00:43 +02:00
parent 9d3602e8ea
commit 4bd919a75f

View File

@ -130,12 +130,12 @@ function M.get_node_from_path(path)
return node.absolute_path == path or node.link_to == path
end)
:recursor(function(node)
if node.nodes then
return node.nodes
end
if node.group_next then
return { node.group_next }
end
if node.nodes then
return node.nodes
end
end)
:iterate()
end