summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-02-24 22:15:10 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-02-24 22:18:04 +1100
commit78b62be96f2476c19713622c5fc5aab794557d6c (patch)
treee189f3597145383e5a9429f498bde72fc96bb6e7 /pkg/gui/gui.go
parent1f5ccab1ce59d82c69645da8ab31da2cee832cd7 (diff)
better handling of clearing the search
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 015e3ebfe..0090e6c92 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -346,8 +346,7 @@ func (gui *Gui) onFocusLost(v *gocui.View, newView *gocui.View) error {
return nil
}
if v.IsSearching() && newView.Name() != "search" {
- gui.State.Searching.isSearching = false
- v.ClearSearch()
+ gui.onSearchEscape()
}
switch v.Name() {
case "branches":