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
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user