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:
parent
905e6c16ba
commit
7c33c02930
@ -79,7 +79,7 @@ func (gui *Gui) createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, t
|
|||||||
// delete the existing confirmation panel if it exists
|
// delete the existing confirmation panel if it exists
|
||||||
if view, _ := g.View("confirmation"); view != nil {
|
if view, _ := g.View("confirmation"); view != nil {
|
||||||
if err := gui.closeConfirmationPrompt(g); err != 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)
|
x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(g, prompt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user