mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-29 00:51:35 +02:00
prevent unnecessary re-renders of view
This commit is contained in:
pkg/tasks
@ -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",
|
||||
|
Reference in New Issue
Block a user