diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-16 12:41:04 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-21 22:07:14 +1100 |
commit | 7e0a8f235ef6971a98fba9c91c7fa159ca842180 (patch) | |
tree | 888c1e23b7b49e438226d9dee2c75316532d58ae /pkg/gui/patch_options_panel.go | |
parent | 44bbc106a9668b8886f22812651635ec00a156fa (diff) |
add contexts to views
Diffstat (limited to 'pkg/gui/patch_options_panel.go')
-rw-r--r-- | pkg/gui/patch_options_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go index 009faa83d..00801a203 100644 --- a/pkg/gui/patch_options_panel.go +++ b/pkg/gui/patch_options_panel.go @@ -67,7 +67,7 @@ func (gui *Gui) validateNormalWorkingTreeState() (bool, error) { } func (gui *Gui) returnFocusFromLineByLinePanelIfNecessary() error { - if gui.State.Context == "patch-building" { + if gui.State.MainContext == "patch-building" { return gui.handleEscapePatchBuildingPanel(gui.g, nil) } return nil |