font panel fix

This commit is contained in:
daboe01 committed 2014-07-12 13:58:38 +02:00
1 parent aa889be140
commit f9de34e36d
1 file changed
+2 -2
+2 -2
View File
@@ -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];
}
}