Skip to content

Commit 747cc5a

Browse files
author
Nicolas Brüggemann (mcbernie)
committed
add a if condition to add missing_ranges while chunk_size is greater
1 parent ce769c6 commit 747cc5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/table_content.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,10 @@ where
460460
loading_ranges.push(current_range.clone());
461461
current_range = current_range.end..current_range.end + chunk_size;
462462
}
463+
// when we got a missing_range which size is less than the chunk_size, add current_range to loading_ranges
464+
if current_range.end > missing_range.end && current_range.start < missing_range.end {
465+
loading_ranges.push(current_range);
466+
}
463467
} else {
464468
loading_ranges.push(missing_range);
465469
}

0 commit comments

Comments
 (0)