diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-11 13:27:34 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-11 13:27:34 +1000 |
commit | 6d3d40c41fb8703409dc6e3fcd8cb6efbff21d8d (patch) | |
tree | 838b6c23a2287728da296fa29e661e01fa2e2c96 | |
parent | 2137d3f6d29499210ebdd538894ddd9c05152019 (diff) |
handle error on confirmation panel resize
-rw-r--r-- | gui.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -216,8 +216,12 @@ func layout(g *gocui.Gui) error { } } - resizeConfirmationPanel(g, "commitMessage") - resizeConfirmationPanel(g, "confirmation") + if err = resizeConfirmationPanel(g, "commitMessage"); err != nil { + return err + } + if err = resizeConfirmationPanel(g, "confirmation"); err != nil { + return err + } if v, err := g.SetView("version", width-len(version)-1, optionsTop, width, optionsTop+2, 0); err != nil { if err != gocui.ErrUnknownView { |