summaryrefslogtreecommitdiffstats
path: root/pkg/gui/branches_panel.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/branches_panel.go
parent1f5ccab1ce59d82c69645da8ab31da2cee832cd7 (diff)
better handling of clearing the search
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r--pkg/gui/branches_panel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go
index 251b112d8..5ecb563f2 100644
--- a/pkg/gui/branches_panel.go
+++ b/pkg/gui/branches_panel.go
@@ -400,7 +400,7 @@ func (gui *Gui) onBranchesTabClick(tabIndex int) error {
func (gui *Gui) switchBranchesPanelContext(context string) error {
branchesView := gui.getBranchesView()
branchesView.Context = context
- branchesView.ClearSearch()
+ gui.onSearchEscape()
contextTabIndexMap := map[string]int{
"local-branches": 0,