mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
prevent unnecessary re-renders of view
This commit is contained in:
parent
4adca84d68
commit
0af4e5a843
2 changed files with 21 additions and 9 deletions
|
@ -167,25 +167,25 @@ func TestNewCmdTaskRefresh(t *testing.T) {
|
|||
"total < initialRefreshAfter",
|
||||
150,
|
||||
LinesToRead{100, 120},
|
||||
[]int{100, 100},
|
||||
[]int{100},
|
||||
},
|
||||
{
|
||||
"total == initialRefreshAfter",
|
||||
150,
|
||||
LinesToRead{100, 100},
|
||||
[]int{100, 100, 100},
|
||||
[]int{100},
|
||||
},
|
||||
{
|
||||
"total > initialRefreshAfter",
|
||||
150,
|
||||
LinesToRead{100, 50},
|
||||
[]int{50, 100, 100},
|
||||
[]int{50, 100},
|
||||
},
|
||||
{
|
||||
"initialRefreshAfter == -1",
|
||||
150,
|
||||
LinesToRead{100, -1},
|
||||
[]int{100, 100},
|
||||
[]int{100},
|
||||
},
|
||||
{
|
||||
"totalTaskLines < initialRefreshAfter",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue