summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/commit_files_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/context/commit_files_context.go')
-rw-r--r--pkg/gui/context/commit_files_context.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/gui/context/commit_files_context.go b/pkg/gui/context/commit_files_context.go
index c95486cbf..4a28ac4c5 100644
--- a/pkg/gui/context/commit_files_context.go
+++ b/pkg/gui/context/commit_files_context.go
@@ -20,9 +20,9 @@ func NewCommitFilesContext(
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,
) *CommitFilesContext {
@@ -34,7 +34,7 @@ func NewCommitFilesContext(
ListContextTrait: &ListContextTrait{
Context: NewSimpleContext(
NewBaseContext(NewBaseContextOpts{
- ViewName: "commitFiles",
+ View: view,
WindowName: "commits",
Key: COMMIT_FILES_CONTEXT_KEY,
Kind: types.SIDE_CONTEXT,
@@ -47,7 +47,6 @@ func NewCommitFilesContext(
OnRenderToMain: onRenderToMain,
}),
list: viewModel,
- viewTrait: NewViewTrait(view),
getDisplayStrings: getDisplayStrings,
c: c,
},