diff options
Diffstat (limited to 'pkg/gui/confirmation_panel.go')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index 135ac782f..ee1b1bab7 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -189,14 +189,14 @@ func (gui *Gui) createPopupPanel(opts createPopupPanelOpts) error { } confirmationView.Editable = opts.editable if opts.editable { - go func() { + go utils.Safe(func() { // TODO: remove this wait (right now if you remove it the EditGotoToEndOfLine method doesn't seem to work) time.Sleep(time.Millisecond) gui.g.Update(func(g *gocui.Gui) error { confirmationView.EditGotoToEndOfLine() return nil }) - }() + }) } gui.renderString("confirmation", opts.prompt) |