diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-22 11:44:03 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | c2b154acad4e1040bdc0e09cf44733ccd877923b (patch) | |
tree | d963fb7f4cdb405c8dfa610c94835d5c00822498 /pkg/gui/global_handlers.go | |
parent | fbd61fcd17d495e9605bcf1f765663f861839cac (diff) |
better handling of our different modes and also cherry picking
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r-- | pkg/gui/global_handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index ee44a3c48..b1cedd63b 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -143,10 +143,10 @@ func (gui *Gui) handleInfoClick(g *gocui.Gui, v *gocui.View) error { // if we're in the normal context there will be a donate button here if width-cx <= len(gui.Tr.SLocalize("(reset)")) { - if gui.inFilterMode() { + if gui.State.Modes.Filtering.Active() { return gui.exitFilterMode() } - if gui.inDiffMode() { + if gui.State.Modes.Diffing.Active() { return gui.exitDiffMode() } if gui.GitCommand.PatchManager.Active() { |