mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 10:23:39 +00:00
yet another minor fix
This commit is contained in:
committed by
Alexander Ljungberg
parent
6f66c06111
commit
342ea97406
@@ -537,7 +537,7 @@
|
||||
var additionalLength = aString.length - aRange.length;
|
||||
var patchPosition = startingIndex;
|
||||
|
||||
_string = _string.substring(0, aRange.location) + aString + _string.substring(CPMaxRange(aRange));
|
||||
_string = _string.substring(0, aRange.location) + aString + _string.substring(CPMaxRange(aRange));
|
||||
var originalLength= _rangeEntries[patchPosition].range.length;
|
||||
|
||||
if (startingIndex === endingIndex)
|
||||
@@ -564,6 +564,8 @@
|
||||
_rangeEntries[startingIndex].range.location += lhsOffset;
|
||||
_rangeEntries[startingIndex].range.length += rhsOffset;
|
||||
patchPosition= startingIndex;
|
||||
} else
|
||||
{ _rangeEntries[patchPosition].range.length += additionalLength;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user