make storage length zero more tolerant

This commit is contained in:
daboe01
2014-08-14 14:14:49 +02:00
parent dca6347ea9
commit 5f0be0cc7f
+1 -1
View File
@@ -636,7 +636,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
{
var textStorageLength = [_layoutManager numberOfCharacters];
if (textStorageLength === 0)
if (!textStorageLength)
return CPMakeRange(0, 0);
if (proposedRange.location >= textStorageLength)