1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-20 05:19:24 +02:00

Fixed surgestion from golangcibot

This commit is contained in:
mjarkk 2018-10-20 19:03:51 +02:00
parent b72841ca0c
commit 1be44eae84

View File

@ -7,6 +7,7 @@
package gui package gui
import ( import (
"log"
"strings" "strings"
"github.com/fatih/color" "github.com/fatih/color"
@ -84,8 +85,14 @@ func (gui *Gui) prepareConfirmationPanel(currentView *gocui.View, title, prompt
} }
func (gui *Gui) onNewPopupPanel() { func (gui *Gui) onNewPopupPanel() {
gui.g.SetViewOnBottom("commitMessage") _, err := gui.g.SetViewOnBottom("commitMessage")
gui.g.SetViewOnBottom("pushPassUname") if err != nil {
log.Fatal(err)
}
_, err = gui.g.SetViewOnBottom("pushPassUname")
if err != nil {
log.Fatal(err)
}
} }
func (gui *Gui) createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, title, prompt string, handleConfirm, handleClose func(*gocui.Gui, *gocui.View) error) error { func (gui *Gui) createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, title, prompt string, handleConfirm, handleClose func(*gocui.Gui, *gocui.View) error) error {