1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

fix panic

This commit is contained in:
Jesse Duffield 2020-09-26 11:51:10 +10:00
parent 62a31c27e1
commit 8dae54ab8c

View File

@ -41,10 +41,7 @@ func (gui *Gui) getMenuOptions() map[string]string {
}
func (gui *Gui) handleMenuClose(g *gocui.Gui, v *gocui.View) error {
err := g.DeleteView("menu")
if err != nil {
return err
}
_ = g.DeleteView("menu")
return gui.returnFromContext()
}