fix(get-node-from-path): group dirs should be returned before nodes
This commit is contained in:
parent
9d3602e8ea
commit
4bd919a75f
@ -130,12 +130,12 @@ function M.get_node_from_path(path)
|
|||||||
return node.absolute_path == path or node.link_to == path
|
return node.absolute_path == path or node.link_to == path
|
||||||
end)
|
end)
|
||||||
:recursor(function(node)
|
:recursor(function(node)
|
||||||
if node.nodes then
|
|
||||||
return node.nodes
|
|
||||||
end
|
|
||||||
if node.group_next then
|
if node.group_next then
|
||||||
return { node.group_next }
|
return { node.group_next }
|
||||||
end
|
end
|
||||||
|
if node.nodes then
|
||||||
|
return node.nodes
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
:iterate()
|
:iterate()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user