Skip to content

Commit d239289

Browse files
authored
Merge pull request #57 from mcbernie/fix-missing_range_less_than_chunk_size
2 parents ce769c6 + 747cc5a commit d239289

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)