formatting

This commit is contained in:
daboe01
2015-06-09 22:46:47 +02:00
parent d1aff30c9e
commit 9bef5a62dd
+1 -3
View File
@@ -624,10 +624,8 @@ var kDelegateRespondsTo_textShouldBeginEditing
if ([self _isFirstResponder])
[self updateInsertionPointStateAndRestartTimer:((_selectionRange.length === 0) && ![_caret isBlinking])];
var peekLoc = CPMaxRange(range);
if (doOverwrite)
[self setTypingAttributes:[_textStorage attributesAtIndex:peekLoc effectiveRange:nil]];
[self setTypingAttributes:[_textStorage attributesAtIndex:CPMaxRange(range) effectiveRange:nil]];
[[CPNotificationCenter defaultCenter] postNotificationName:CPTextViewDidChangeSelectionNotification object:self];