diff options
-rw-r--r-- | commits_panel.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/commits_panel.go b/commits_panel.go index 2b9ccbf87..1a9976ffe 100644 --- a/commits_panel.go +++ b/commits_panel.go @@ -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 } |