Skip to content

Commit

Permalink
fix(tree): fixed tree item count. Fixes #419
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent 769ee0f commit cb59440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function M:count()
for _, child in ipairs(self.children or {}) do
self._count = self._count + child:count()
end
if not self.group then
if not self.group and self.item then
self._count = self._count + 1
end
end
Expand Down

0 comments on commit cb59440

Please sign in to comment.