mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-15 06:43:41 +00:00
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:
1 parent
681493f458
commit
30fbbb8c04
1 file changed
+4
-1
@@ -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(())
|
||||
|
||||
Reference in new issue
Block a user