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

handle commit select on any commits panel refresh

This commit is contained in:
Jesse Duffield 2018-08-11 15:31:55 +10:00
parent 753ca75e55
commit 62a231abb7

View File

@ -34,6 +34,9 @@ func refreshCommits(g *gocui.Gui) error {
white.Fprintln(v, commit.Name)
}
refreshStatus(g)
if g.CurrentView().Name() == "commits" {
handleCommitSelect(g, v)
}
return nil
})
return nil
@ -135,8 +138,7 @@ func handleCommitFixup(g *gocui.Gui, v *gocui.View) error {
if err := refreshCommits(g); err != nil {
panic(err)
}
refreshStatus(g)
return handleCommitSelect(g, v)
return refreshStatus(g)
}, nil)
return nil
}