mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +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:
parent
15d17e16dd
commit
c3d5798c6c
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ func GetCommitListDisplayStrings(
|
|||
return nil
|
||||
}
|
||||
|
||||
if startIdx > len(commits) {
|
||||
if startIdx >= len(commits) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue