1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +02:00

use PopContext

This commit is contained in:
Jesse Duffield
2022-02-22 20:17:26 +11:00
parent ecaff7fc6c
commit 120078f011
6 changed files with 9 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ func (gui *Gui) handleOpenSearch(viewName string) error {
func (gui *Gui) handleSearch() error {
gui.State.Searching.searchString = gui.Views.Search.TextArea.GetContent()
if err := gui.returnFromContext(); err != nil {
if err := gui.c.PopContext(); err != nil {
return err
}
@@ -93,7 +93,7 @@ func (gui *Gui) handleSearchEscape() error {
return err
}
if err := gui.returnFromContext(); err != nil {
if err := gui.c.PopContext(); err != nil {
return err
}