mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The character offset passed to isGraphemeBreak is relative to the beginning of the string (not relative to the text_start parameter). This caused bad results when searching for grapheme breaks beyond the first line of text (see https://github.com/flutter/flutter/issues/24802). This PR fixes the offset value. It also reverts the workaround applied in https://github.com/flutter/engine/pull/10063, which caused incorrect calculation of boundaries between graphemes within ligatures.