diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-25 17:38:03 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-25 17:38:03 +1000 |
commit | 57decdd11df3bc5228d1419e46012e2b0b81831d (patch) | |
tree | 2b4ce5da886cee7583bd5efe32d86ee168c7cd1b /pkg | |
parent | 87dc2bcad9a799fe15c3198d29902f72c56de5f5 (diff) |
check error from setViewOnBottom
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/gui.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index c8ebbfa72..8783ecba2 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -271,7 +271,9 @@ func (gui *Gui) layout(g *gocui.Gui) error { appStatusView.BgColor = gocui.ColorDefault appStatusView.FgColor = gocui.ColorCyan appStatusView.Frame = false - g.SetViewOnBottom("appStatus") + if _, err := g.SetViewOnBottom("appStatus"); err != nil { + return err + } } if v, err := g.SetView("version", optionsVersionBoundary-1, optionsTop, width, optionsTop+2, 0); err != nil { |