1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +02:00
This commit is contained in:
Jesse Duffield
2018-08-23 18:43:16 +10:00
parent 954dfb12e4
commit 5628eae502
5 changed files with 180 additions and 63 deletions

View File

@@ -18,7 +18,7 @@ func (gui *Gui) wrappedConfirmationFunction(function func(*gocui.Gui, *gocui.Vie
return func(g *gocui.Gui, v *gocui.View) error {
if function != nil {
if err := function(g, v); err != nil {
panic(err)
return err
}
}
return gui.closeConfirmationPrompt(g)