diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 1ea9dbef6..599b587cb 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -2298,6 +2298,9 @@ Sets the selection to a range of characters in response to user action. caretRect.origin.x += _textContainerOrigin.x; caretRect.origin.y += _textContainerOrigin.y; + caretRect.size.width = MAX(1.0, caretRect.size.width); + caretRect.size.height = MAX(1.0, caretRect.size.height); + return caretRect; } - (void)updateInsertionPointStateAndRestartTimer:(BOOL)flag