Skip to content

Commit 4bd919a

Browse files
committed
fix(get-node-from-path): group dirs should be returned before nodes
1 parent 9d3602e commit 4bd919a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/nvim-tree/utils.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ function M.get_node_from_path(path)
130130
return node.absolute_path == path or node.link_to == path
131131
end)
132132
:recursor(function(node)
133-
if node.nodes then
134-
return node.nodes
135-
end
136133
if node.group_next then
137134
return { node.group_next }
138135
end
136+
if node.nodes then
137+
return node.nodes
138+
end
139139
end)
140140
:iterate()
141141
end

0 commit comments

Comments
 (0)