summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-11 13:27:34 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-11 13:27:34 +1000
commit6d3d40c41fb8703409dc6e3fcd8cb6efbff21d8d (patch)
tree838b6c23a2287728da296fa29e661e01fa2e2c96
parent2137d3f6d29499210ebdd538894ddd9c05152019 (diff)
handle error on confirmation panel resize
-rw-r--r--gui.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui.go b/gui.go
index b6258ec95..033dbe06a 100644
--- a/gui.go
+++ b/gui.go
@@ -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 {