diff options
Diffstat (limited to 'termui/input_popup.go')
-rw-r--r-- | termui/input_popup.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/termui/input_popup.go b/termui/input_popup.go index c8299d2a..db0ec619 100644 --- a/termui/input_popup.go +++ b/termui/input_popup.go @@ -55,7 +55,10 @@ func (ip *inputPopup) layout(g *gocui.Gui) error { v.Frame = true v.Title = ip.title v.Editable = true - v.Write([]byte(ip.preload)) + _, err = v.Write([]byte(ip.preload)) + if err != nil { + return err + } } if _, err := g.SetCurrentView(inputPopupView); err != nil { |