diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 39f8fb883..a36a6d3c2 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -2303,6 +2303,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