diff options
Diffstat (limited to 'pkg/gui/context/stash_context.go')
-rw-r--r-- | pkg/gui/context/stash_context.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/gui/context/stash_context.go b/pkg/gui/context/stash_context.go index 89e0a250d..19eb5030a 100644 --- a/pkg/gui/context/stash_context.go +++ b/pkg/gui/context/stash_context.go @@ -18,9 +18,9 @@ func NewStashContext( 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, ) *StashContext { @@ -30,7 +30,7 @@ func NewStashContext( BasicViewModel: viewModel, ListContextTrait: &ListContextTrait{ Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{ - ViewName: "stash", + View: view, WindowName: "stash", Key: STASH_CONTEXT_KEY, Kind: types.SIDE_CONTEXT, @@ -41,7 +41,6 @@ func NewStashContext( OnRenderToMain: onRenderToMain, }), list: viewModel, - viewTrait: NewViewTrait(view), getDisplayStrings: getDisplayStrings, c: c, }, |