diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-15 20:30:34 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-15 20:35:25 +1100 |
commit | befa35645ea6bb32e3f4447f00c79c0c9a326483 (patch) | |
tree | 8263efeeafaadf43c760ce103e62905e68122937 /pkg/gui | |
parent | 7a690f9078637561425cf3c1143da88b1769cf16 (diff) |
fix bug which prevented quitting with confirm
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index 0537f1b45..b092b1d10 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -327,5 +327,9 @@ func (gui *Gui) surfaceError(err error) error { return nil } + if err == gocui.ErrQuit { + return err + } + return gui.createErrorPanel(err.Error()) } |