yet another minor fix

This commit is contained in:
daboe01
2014-02-12 21:57:43 +00:00
committed by Alexander Ljungberg
parent 6f66c06111
commit 342ea97406
+3 -1
View File
@@ -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;
}
}