diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 6615b96f2..a9bd30a98 100755 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -636,7 +636,7 @@ var kDelegateRespondsTo_textShouldBeginEditing { var textStorageLength = [_layoutManager numberOfCharacters]; - if (textStorageLength === 0) + if (!textStorageLength) return CPMakeRange(0, 0); if (proposedRange.location >= textStorageLength)