mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 03:03:50 +00:00
Fixes testShiftIndexesStartingAtIndex. Upward shifting no longer throws.
This commit is contained in:
1 parent
dc9d79bc3d
commit
b9427f84ae
1 file changed
+4
-1
@@ -739,12 +739,15 @@
|
||||
shifts = [];
|
||||
|
||||
for (; j < count; ++j)
|
||||
{
|
||||
[shifts addObject:_ranges[j]];
|
||||
_count -= _ranges[j].length
|
||||
}
|
||||
|
||||
if ((j = i + 1) < count)
|
||||
{
|
||||
[_ranges removeObjectsInRange:CPMakeRange(j, count - j)];
|
||||
|
||||
|
||||
for (j = 0, count = shifts.length; j < count; ++j)
|
||||
[self addIndexesInRange:shifts[j]];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user