fix(engine): stop range selection after the last record number

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Dylan M. Taylor
2026-10-24 08:50:03 +00:00
co-authored by Claude Sonnet 5.5
parent 681493f458
commit 30fbbb8c04
+4 -1
View File
@@ -200,7 +200,10 @@ fn select_range(range: &str, count: usize, idx: &mut Vec<usize>, seen: &mut std:
if seen.insert(i) {
idx.push(i);
}
n = n.saturating_add(1);
if n == b {
break;
}
n += 1;
}
}
Ok(())