diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-25 20:55:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-25 21:21:07 +1100 |
commit | f94d0be2c9b0eaaf539d2cdcfaf258f754162a2e (patch) | |
tree | 0fa95e6348ca35d0938d263b007d9c471a09731e /pkg/gui/commits_panel.go | |
parent | 9fd9fd6816925debe64aa21269cdba5ec74ed5e9 (diff) |
refactor the way we render lists
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r-- | pkg/gui/commits_panel.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go index e42aabfd0..fe6b7acb9 100644 --- a/pkg/gui/commits_panel.go +++ b/pkg/gui/commits_panel.go @@ -632,7 +632,13 @@ func (gui *Gui) switchCommitsPanelContext(context string) error { commitsView.TabIndex = contextTabIndexMap[context] - switch context { + return gui.refreshCommitsViewWithSelection() +} + +func (gui *Gui) refreshCommitsViewWithSelection() error { + commitsView := gui.getCommitsView() + + switch commitsView.Context { case "branch-commits": return gui.renderBranchCommitsWithSelection() case "reflog-commits": |