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/sub_commits_context.go | |
parent | e2db6a173295a2f31deccfca43dac8bebcee6a6c (diff) |
move views into contexts
Diffstat (limited to 'pkg/gui/context/sub_commits_context.go')
-rw-r--r-- | pkg/gui/context/sub_commits_context.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/context/sub_commits_context.go b/pkg/gui/context/sub_commits_context.go index f4bf2360f..868dbf920 100644 --- a/pkg/gui/context/sub_commits_context.go +++ b/pkg/gui/context/sub_commits_context.go @@ -3,7 +3,6 @@ package context import ( "fmt" - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/gui/types" "github.com/jesseduffield/lazygit/pkg/utils" @@ -22,7 +21,6 @@ var ( func NewSubCommitsContext( getModel func() []*models.Commit, - view *gocui.View, getDisplayStrings func(startIdx int, length int) [][]string, c *types.HelperCommon, @@ -39,7 +37,7 @@ func NewSubCommitsContext( ViewportListContextTrait: &ViewportListContextTrait{ ListContextTrait: &ListContextTrait{ Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{ - View: view, + View: c.Views().SubCommits, WindowName: "branches", Key: SUB_COMMITS_CONTEXT_KEY, Kind: types.SIDE_CONTEXT, |