From e600ec95ed17e4eabda292f0f2bc451a7b34b389 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 25 May 2014 09:27:54 +0200 Subject: [PATCH] font panel fix --- AppKit/CPTextView/CPTextView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 822cec8e6..cef4ee8ed 100755 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -715,9 +715,9 @@ var kDelegateRespondsTo_textShouldBeginEditing if (_isFirstResponder) [self updateInsertionPointStateAndRestartTimer:((_selectionRange.length === 0) && ![_caretTimer isValid])]; - [[CPNotificationCenter defaultCenter] postNotificationName:CPTextViewDidChangeSelectionNotification object:self]; - [self setTypingAttributes:[_textStorage attributesAtIndex:MAX(0, range.location -1) effectiveRange:nil]]; + + [[CPNotificationCenter defaultCenter] postNotificationName:CPTextViewDidChangeSelectionNotification object:self]; } }