mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Spreadsheet: Make Range.forEach() stop looping when it receives a Break
Not having this broke the mechanism behind lookup() and reflookup().
This commit is contained in:
parent
4ccb6c8815
commit
6bb0c09bc1
1 changed files with 2 additions and 2 deletions
|
@ -198,9 +198,9 @@ class Range {
|
|||
});
|
||||
}
|
||||
|
||||
for (const range of ranges) {
|
||||
outer: for (const range of ranges) {
|
||||
for (let row = range.rowStart; row <= range.rowEnd; row += this.rowStep) {
|
||||
callback(range.column + row);
|
||||
if (callback(range.column + row) === Break) break outer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue