Skip to content

Commit

Permalink
changelogs --entry-limit: fix off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
gotmax23 committed Feb 11, 2024
1 parent ef657fa commit 5c0bfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fedrq/cli/commands/changelogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ def run(self) -> None:
for i, entry in enumerate(changelogs):
print(entry)
print()
if self.args.entry_limit is not None and i >= self.args.entry_limit:
if self.args.entry_limit is not None and i + 1 >= self.args.entry_limit:
break

0 comments on commit 5c0bfd4

Please sign in to comment.