no selection after undo

This commit is contained in:
daboe01
2015-09-26 20:57:25 +02:00
parent 93e8ec7f06
commit 1aa247d4da
+2 -2
View File
@@ -549,7 +549,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
withAttributedString:[_textStorage attributedSubstringFromRange:CPMakeRangeCopy(aRange)]];
[_textStorage replaceCharactersInRange:aRange withAttributedString:aString];
[self _fixupReplaceForRange:CPMakeRange(aRange.location, [aString length])];
[self _fixupReplaceForRange:CPMakeRange(CPMaxRange(aRange), 0)];
}
- (void)_replaceCharactersInRange:(CPRange)aRange withString:(CPString)aString
@@ -559,7 +559,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
withString:[[self string] substringWithRange:CPMakeRangeCopy(aRange)]];
[_textStorage replaceCharactersInRange:CPMakeRangeCopy(aRange) withString:aString];
[self _fixupReplaceForRange:CPMakeRange(aRange.location, [aString length])];
[self _fixupReplaceForRange:CPMakeRange(CPMaxRange(aRange), 0)];
}
- (void)insertText:(CPString)aString