1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-26 09:00:57 +02:00

handle error on confirmation panel resize

This commit is contained in:
Jesse Duffield 2018-08-11 13:27:34 +10:00
parent 2137d3f6d2
commit 6d3d40c41f

8
gui.go
View File

@ -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 {