diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-28 09:52:56 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-28 09:52:56 +1000 |
commit | 46cce28758a40ce2abaed3bbca50925d697e0d88 (patch) | |
tree | d18542f8a1d7d705858316b4d2f06d3927ce6cc1 | |
parent | 5611d9a3ef442bfa162ee604b94af3639db73a09 (diff) |
restore donate linkv0.22.4
-rw-r--r-- | pkg/gui/global_handlers.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index d5b25f738..ddbb2e542 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -147,12 +147,11 @@ func (gui *Gui) handleInfoClick(g *gocui.Gui, v *gocui.View) error { cx, _ := v.Cursor() width, _ := v.Size() - if width-cx > len(gui.Tr.SLocalize("(reset)")) { - return nil - } - for _, mode := range gui.modeStatuses() { if mode.isActive() { + if width-cx > len(gui.Tr.SLocalize("(reset)")) { + return nil + } return mode.reset() } } |