From c5235427474675e950bdf30024bd0c1d930c10a2 Mon Sep 17 00:00:00 2001 From: szydlovsky <9szydlowski9@gmail.com> Date: Fri, 3 Oct 2025 16:41:14 +0200 Subject: [PATCH] fix: make trailing newlines not use current typing attributes --- ios/EnrichedTextInputView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/EnrichedTextInputView.mm b/ios/EnrichedTextInputView.mm index f4926ae85..23178d5ef 100644 --- a/ios/EnrichedTextInputView.mm +++ b/ios/EnrichedTextInputView.mm @@ -565,7 +565,7 @@ - (CGSize)measureSize:(CGFloat)maxWidth { unichar lastChar = [currentStr.string characterAtIndex:currentStr.length-1]; if([[NSCharacterSet newlineCharacterSet] characterIsMember:lastChar]) { [currentStr appendAttributedString: - [[NSAttributedString alloc] initWithString:@"I" attributes:textView.typingAttributes] + [[NSAttributedString alloc] initWithString:@"I" attributes:defaultTypingAttributes] ]; } }