fixed: caret is invisible at the end of the line

This commit is contained in:
daboe01
2026-03-14 13:01:58 +01:00
parent 9f092a3c2e
commit b39c3e8d4b
+3
View File
@@ -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