diff options
Diffstat (limited to 'pkg/gui/staging_panel.go')
-rw-r--r-- | pkg/gui/staging_panel.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/gui/staging_panel.go b/pkg/gui/staging_panel.go index 66b3006fc..44413442f 100644 --- a/pkg/gui/staging_panel.go +++ b/pkg/gui/staging_panel.go @@ -18,10 +18,8 @@ func (gui *Gui) refreshStagingPanel(forceSecondaryFocused bool, selectedLineIdx secondaryFocused := false if forceSecondaryFocused { secondaryFocused = true - } else { - if state != nil { - secondaryFocused = state.SecondaryFocused - } + } else if state != nil { + secondaryFocused = state.SecondaryFocused } if (secondaryFocused && !file.HasStagedChanges) || (!secondaryFocused && !file.HasUnstagedChanges) { |