1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-25 12:24:47 +02:00

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 06ca71e955, 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 `>`.
This commit is contained in:
Stefan Haller 2024-08-09 14:30:13 +02:00
parent 15d17e16dd
commit c3d5798c6c

View File

@ -65,7 +65,7 @@ func GetCommitListDisplayStrings(
return nil
}
if startIdx > len(commits) {
if startIdx >= len(commits) {
return nil
}