Skip to content

Commit 418fc97

Browse files
authored
fix(iterators): the index does not increase (#1399)
1 parent 269820e commit 418fc97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-tree/iterators/node-iterator.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ function NodeIterator:iterate()
5252
i = i + idx
5353
if n then
5454
return n, i
55-
else
56-
i = i + 1
5755
end
56+
else
57+
i = i + 1
5858
end
5959
end
6060
end

0 commit comments

Comments
 (0)