1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-23 22:24:51 +02:00

Extract a ListRenderer struct

I'm doing this not so much because it's a great abstraction, but just because it
will make it much easier to write tests for it.
This commit is contained in:
Stefan Haller
2023-08-17 20:57:20 +02:00
parent 297a020abf
commit 198ead7c14
16 changed files with 98 additions and 61 deletions

View File

@@ -41,9 +41,11 @@ func NewWorkingTreeContext(c *ContextCommon) *WorkingTreeContext {
Kind: types.SIDE_CONTEXT,
Focusable: true,
})),
list: viewModel,
getDisplayStrings: getDisplayStrings,
c: c,
ListRenderer: ListRenderer{
list: viewModel,
getDisplayStrings: getDisplayStrings,
},
c: c,
},
}