summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/suggestions_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/context/suggestions_context.go')
-rw-r--r--pkg/gui/context/suggestions_context.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/gui/context/suggestions_context.go b/pkg/gui/context/suggestions_context.go
index 1291b37c8..bbf3014f5 100644
--- a/pkg/gui/context/suggestions_context.go
+++ b/pkg/gui/context/suggestions_context.go
@@ -17,9 +17,9 @@ func NewSuggestionsContext(
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,
) *SuggestionsContext {
@@ -29,7 +29,7 @@ func NewSuggestionsContext(
BasicViewModel: viewModel,
ListContextTrait: &ListContextTrait{
Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{
- ViewName: "suggestions",
+ View: view,
WindowName: "suggestions",
Key: SUGGESTIONS_CONTEXT_KEY,
Kind: types.PERSISTENT_POPUP,
@@ -40,7 +40,6 @@ func NewSuggestionsContext(
OnRenderToMain: onRenderToMain,
}),
list: viewModel,
- viewTrait: NewViewTrait(view),
getDisplayStrings: getDisplayStrings,
c: c,
},