1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

better handling of clearing the search

This commit is contained in:
Jesse Duffield
2020-02-24 22:15:10 +11:00
parent 1f5ccab1ce
commit 78b62be96f
4 changed files with 9 additions and 8 deletions

View File

@ -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":