diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-21 21:06:39 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-30 13:19:53 +1000 |
commit | 47b91f1ef5c1bf08e56c4ed170e671d985280932 (patch) | |
tree | 8f696c3be917fdbaf9faf139b9b5f67c7120130c /pkg/gui/context/reflog_commits_context.go | |
parent | e2db6a173295a2f31deccfca43dac8bebcee6a6c (diff) |
move views into contexts
Diffstat (limited to 'pkg/gui/context/reflog_commits_context.go')
-rw-r--r-- | pkg/gui/context/reflog_commits_context.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/context/reflog_commits_context.go b/pkg/gui/context/reflog_commits_context.go index 920699d21..157845079 100644 --- a/pkg/gui/context/reflog_commits_context.go +++ b/pkg/gui/context/reflog_commits_context.go @@ -1,7 +1,6 @@ package context import ( - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/gui/types" ) @@ -18,7 +17,6 @@ var ( func NewReflogCommitsContext( getModel func() []*models.Commit, - view *gocui.View, getDisplayStrings func(startIdx int, length int) [][]string, c *types.HelperCommon, @@ -29,7 +27,7 @@ func NewReflogCommitsContext( BasicViewModel: viewModel, ListContextTrait: &ListContextTrait{ Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{ - View: view, + View: c.Views().ReflogCommits, WindowName: "commits", Key: REFLOG_COMMITS_CONTEXT_KEY, Kind: types.SIDE_CONTEXT, |