summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/reflog_commits_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/context/reflog_commits_context.go')
-rw-r--r--pkg/gui/context/reflog_commits_context.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/gui/context/reflog_commits_context.go b/pkg/gui/context/reflog_commits_context.go
index 1062009e9..e197a50bd 100644
--- a/pkg/gui/context/reflog_commits_context.go
+++ b/pkg/gui/context/reflog_commits_context.go
@@ -18,9 +18,9 @@ func NewReflogCommitsContext(
view *gocui.View,
getDisplayStrings func(startIdx int, length int) [][]string,
- onFocus func(...types.OnFocusOpts) error,
- onRenderToMain func(...types.OnFocusOpts) error,
- onFocusLost func() error,
+ onFocus func(types.OnFocusOpts) error,
+ onRenderToMain func() error,
+ onFocusLost func(opts types.OnFocusLostOpts) error,
c *types.HelperCommon,
) *ReflogCommitsContext {
@@ -30,7 +30,7 @@ func NewReflogCommitsContext(
BasicViewModel: viewModel,
ListContextTrait: &ListContextTrait{
Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{
- ViewName: "commits",
+ View: view,
WindowName: "commits",
Key: REFLOG_COMMITS_CONTEXT_KEY,
Kind: types.SIDE_CONTEXT,
@@ -41,7 +41,6 @@ func NewReflogCommitsContext(
OnRenderToMain: onRenderToMain,
}),
list: viewModel,
- viewTrait: NewViewTrait(view),
getDisplayStrings: getDisplayStrings,
c: c,
},