diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-19 19:13:47 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 7ebed76d16026348abf586ff19e534f7297d7fce (patch) | |
tree | cd6ddb2e6b5ec134db209b30c7e443028f9b9ade /pkg/gui/reflog_panel.go | |
parent | 2b812b01e9d80409a0bf212eb7208dcdd6f5c974 (diff) |
WIP
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r-- | pkg/gui/reflog_panel.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index 1fc7abbd0..03a1ed2be 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -85,11 +85,7 @@ func (gui *Gui) refreshReflogCommits() error { state.FilteredReflogCommits = state.ReflogCommits } - if gui.getCommitsView().Context == "reflog-commits" { - return gui.renderReflogCommitsWithSelection() - } - - return nil + return gui.postRefreshUpdate(gui.Contexts.ReflogCommits.Context) } func (gui *Gui) renderReflogCommitsWithSelection() error { @@ -98,11 +94,6 @@ func (gui *Gui) renderReflogCommitsWithSelection() error { gui.refreshSelectedLine(&gui.State.Panels.ReflogCommits.SelectedLine, len(gui.State.FilteredReflogCommits)) displayStrings := presentation.GetReflogCommitListDisplayStrings(gui.State.FilteredReflogCommits, gui.State.ScreenMode != SCREEN_NORMAL, gui.State.Diff.Ref) gui.renderDisplayStrings(commitsView, displayStrings) - if gui.g.CurrentView() == commitsView && commitsView.Context == "reflog-commits" { - if err := gui.handleReflogCommitSelect(); err != nil { - return err - } - } return nil } |