diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index d09f8bbc3..56c7eb73e 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -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];