1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-26 09:00:57 +02:00

merge with example feature branch

This commit is contained in:
Jesse Duffield 2018-06-09 22:49:40 +10:00
commit 027ea74ca9

View File

@ -168,10 +168,10 @@ func refreshMergePanel(g *gocui.Gui) error {
return err
}
if len(state.Conflicts) == 5 {
if len(state.Conflicts) == 6 {
state.ConflictIndex = 0
} else if state.ConflictIndex > len(state.Conflicts)-1 {
state.ConflictIndex = len(state.Conflicts) - 5
state.ConflictIndex = len(state.Conflicts) - 6
}
hasFocus := currentViewName(g) == "main"
if hasFocus {