mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-11 16:30:16 -06: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:
co-authored by
Claude Sonnet 5.5
parent
681493f458
commit
30fbbb8c04
@@ -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