mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 00:52:58 +00:00
no selection after undo
This commit is contained in:
1 parent
93e8ec7f06
commit
1aa247d4da
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user