1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-01 00:54:58 +02:00

some fixes for issues around the credentials panel

This commit is contained in:
Jesse Duffield
2018-12-12 22:34:20 +11:00
parent c71bcc64ed
commit a26c15dafa
4 changed files with 49 additions and 48 deletions

View File

@ -103,7 +103,11 @@ func (gui *Gui) handlePushConfirm(g *gocui.Gui, v *gocui.View) error {
if err != nil {
return err
}
err = gui.switchFocus(g, v, gui.getFilesView(g))
nextView, err := gui.g.View("confirmation")
if err != nil {
nextView = gui.getFilesView(g)
}
err = gui.switchFocus(g, nil, nextView)
if err != nil {
return err
}
@ -115,8 +119,9 @@ func (gui *Gui) handlePushClose(g *gocui.Gui, v *gocui.View) error {
if err != nil {
return err
}
gui.credentials <- "-"
return gui.switchFocus(g, v, gui.getFilesView(g))
return gui.switchFocus(g, nil, gui.getFilesView(g))
}
func (gui *Gui) handlePushFocused(g *gocui.Gui, v *gocui.View) error {