Sorry, I didn't see your latest patch. I tried the patch, and it does fix the issue. Thank you.

Gerd Möllmann <gerd.moellmann@gmail.com> 于2024年8月3日周六 12:28写道:
Gerd Möllmann <gerd.moellmann@gmail.com> writes:

> Lucius Chen <chenyh572@gmail.com> writes:
>
>> Rime input method. https://github.com/rime/squirrel
>>
>> 在 2024年8月3日星期六,Gerd Möllmann <gerd.moellmann@gmail.com> 写道:
>>
>>  Lucius Chen <chenyh572@gmail.com> writes:
>
> (Please use Reply to All when responding, so that the bug list is kept
> informed.)
>
> Thanks for the link. Alas I can't read Chinese, and the automatic
> translation of the page isn't helpful.
>
> Can you please describe a way how to reproduce this for some non-Chinese
> guy like me? And preferrably using built-in macOS means instead of
> third-party software?
>
> TIA

Hm, could you also please try with this change?

1 file changed, 1 insertion(+), 1 deletion(-)
src/nsterm.m | 2 +-

modified   src/nsterm.m
@@ -7081,7 +7081,7 @@ - (void) setMarkedText: (id) string
 - (NSRect) firstRectForCharacterRange: (NSRange) range
                          actualRange: (nullable NSRangePointer) actualRange
 {
-  return NSZeroRect;
+  return [self firstRectForCharacterRange: range];
 }

 #endif /* NS_IMPL_COCOA */