Adopt ASHierarchyState to replace manual checking for ASCellNode parent.

This commit is contained in:
Scott Goodson
2015-12-05 22:41:40 -08:00
parent 840884272d
commit 67aec97523
2 changed files with 7 additions and 13 deletions

View File

@@ -68,7 +68,7 @@
{
// If it's a space character and we have custom word kerning, use the whitespace action control character.
if ([layoutManager.textStorage.string characterAtIndex:characterIndex] == ' ')
return NSControlCharacterActionWhitespace;
return NSControlCharacterWhitespaceAction;
return defaultAction;
}