From b39c3e8d4b5f4fb1b7d0d32b5469dd77945cf3ff Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 14 Mar 2026 13:01:58 +0100 Subject: [PATCH] fixed: caret is invisible at the end of the line --- AppKit/CPTextView/CPTextView.j | 3 +++ 1 file changed, 3 insertions(+) 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