diff options
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 29180418c..ec1b3f647 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -117,7 +117,7 @@ func (gui *Gui) newLineFocused(g *gocui.Gui, v *gocui.View) error { case "credentials": return gui.handleCredentialsViewFocused(g, v) case "main": - if gui.State.Contexts["main"] == "merging" { + if gui.State.Context == "merging" { return gui.refreshMergePanel() } v.Highlight = false @@ -406,7 +406,7 @@ func (gui *Gui) renderPanelOptions() error { case "menu": return gui.renderMenuOptions() case "main": - if gui.State.Contexts["main"] == "merging" { + if gui.State.Context == "merging" { return gui.renderMergeOptions() } } |