1
0
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:
Jesse Duffield
2023-04-02 15:44:05 +10:00
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",