font panel fix

This commit is contained in:
daboe01
2014-05-25 09:27:54 +02:00
parent cbd5853389
commit e600ec95ed
+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];
}
}