SIGN IN SIGN UP

Clip UTF-16 offsets in text for range (#20968)

When launching the Pinyin keyboard, macOS will sometimes try to peek one
character back in the string.

This caused a panic if the preceding character was an emoji. The docs
say
"don't assume the range is valid", so now we don't.

Release Notes:

- (macOS) Fixed a panic when using the Pinyin keyboard with emojis
C
Conrad Irwin committed
ebaa270bafbd8b4ca504436c5178c68dc81618e7
Parent: 7285cdb
Committed by GitHub <noreply@github.com> on 11/21/2024, 5:04:26 AM