1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00

dont panic if unable to close confirmation prompt

This commit is contained in:
Jesse Duffield 2018-08-15 21:43:31 +10:00
parent 905e6c16ba
commit 7c33c02930

View File

@ -79,7 +79,7 @@ func (gui *Gui) createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, t
// delete the existing confirmation panel if it exists
if view, _ := g.View("confirmation"); view != nil {
if err := gui.closeConfirmationPrompt(g); err != nil {
panic(err)
gui.Log.Error("Could not close confirmation prompt: ", err.Error())
}
}
x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(g, prompt)