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:
parent
2137d3f6d2
commit
6d3d40c41f
8
gui.go
8
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user