Skip to content

Commit c3d5798

Browse files
committed
Fix early exit condition
I don't know what this condition is supposed to guard against, or whether we really need it (it was added in 06ca71e, and the commit message of that commit only says "fix bug"). But if we do need it, then it seems that `>=` is more correct than `>`.
1 parent 15d17e1 commit c3d5798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/presentation/commits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func GetCommitListDisplayStrings(
6565
return nil
6666
}
6767

68-
if startIdx > len(commits) {
68+
if startIdx >= len(commits) {
6969
return nil
7070
}
7171

0 commit comments

Comments
 (0)