1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +02:00

dont check for error when sending view to bottom

This commit is contained in:
Jesse Duffield
2020-08-17 20:49:47 +10:00
parent 62a662054b
commit e87635295a
3 changed files with 4 additions and 16 deletions

View File

@@ -94,11 +94,7 @@ func (gui *Gui) createMenu(title string, items []*menuItem, createMenuOptions cr
return err
}
if _, err := gui.g.View("menu"); err == nil {
if _, err := gui.g.SetViewOnBottom("menu"); err != nil {
return err
}
}
_, _ = gui.g.SetViewOnBottom("menu")
return gui.returnFromContext()
}