diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-03 11:32:14 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | bc9a99387f68afb24863d17ab4d29c1686843a76 (patch) | |
tree | aac694046f93d457177086d4c5afb5a0c12ea302 /pkg/gui/reflog_panel.go | |
parent | 5289d49f75e9735f129e1f8e2a2f9dc74373515b (diff) |
refactor of contexts and filtering
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r-- | pkg/gui/reflog_panel.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index 89293f6b4..3fd3277dc 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -23,7 +23,7 @@ func (gui *Gui) handleReflogCommitSelect() error { task = gui.createRenderStringTask("No reflog history") } else { cmd := gui.OSCommand.ExecutableFromString( - gui.GitCommand.ShowCmdStr(commit.Sha, gui.State.Modes.Filtering.Path), + gui.GitCommand.ShowCmdStr(commit.Sha, gui.State.Modes.Filtering.GetPath()), ) task = gui.createRunPtyTask(cmd) @@ -72,14 +72,14 @@ func (gui *Gui) refreshReflogCommits() error { } if gui.State.Modes.Filtering.Active() { - if err := refresh(&state.FilteredReflogCommits, state.Modes.Filtering.Path); err != nil { + if err := refresh(&state.FilteredReflogCommits, state.Modes.Filtering.GetPath()); err != nil { return err } } else { state.FilteredReflogCommits = state.ReflogCommits } - return gui.postRefreshUpdate(gui.Contexts.ReflogCommits.Context) + return gui.postRefreshUpdate(gui.Contexts.ReflogCommits) } func (gui *Gui) handleCheckoutReflogCommit() error { @@ -116,5 +116,5 @@ func (gui *Gui) handleViewReflogCommitFiles() error { return nil } - return gui.switchToCommitFilesContext(commit.Sha, false, gui.Contexts.ReflogCommits.Context, "commits") + return gui.switchToCommitFilesContext(commit.Sha, false, gui.Contexts.ReflogCommits, "commits") } |