diff options
author | mjarkk <mkopenga@gmail.com> | 2018-10-20 19:03:51 +0200 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2018-10-20 19:03:51 +0200 |
commit | 1be44eae84a3ec86adf749356c21d752d673223e (patch) | |
tree | bf9c7b883a21b50c099b8141cb37b6d701f8fef2 /pkg/gui | |
parent | b72841ca0cfd5f08f8352c4c597468bed715aff9 (diff) |
Fixed surgestion from golangcibot
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index ef7c97e6e..ed0b0455a 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -7,6 +7,7 @@ package gui import ( + "log" "strings" "github.com/fatih/color" @@ -84,8 +85,14 @@ func (gui *Gui) prepareConfirmationPanel(currentView *gocui.View, title, prompt } func (gui *Gui) onNewPopupPanel() { - gui.g.SetViewOnBottom("commitMessage") - gui.g.SetViewOnBottom("pushPassUname") + _, err := gui.g.SetViewOnBottom("commitMessage") + if err != nil { + log.Fatal(err) + } + _, err = gui.g.SetViewOnBottom("pushPassUname") + if err != nil { + log.Fatal(err) + } } func (gui *Gui) createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, title, prompt string, handleConfirm, handleClose func(*gocui.Gui, *gocui.View) error) error { |