Skip to content

fix(CompositionHelper): handle selected-tail IME replacements - #6290

Open
itsnotlupus wants to merge 2 commits into
xtermjs:masterfrom
itsnotlupus:fix/android-ime-tail-replacement
Open

itsnotlupus wants to merge 2 commits into
xtermjs:masterfrom
itsnotlupus:fix/android-ime-tail-replacement

Conversation

@itsnotlupus

Copy link
Copy Markdown

When an IME replaces selected textarea text before xterm's deferred 229 check runs, the old value comparison can send the replacement without deleting the selected terminal text. Snapshot the selection and emit DEL for each removed code point before the replacement; also emit the correct number of DELs for standalone suffix deletions.

When an IME replaces selected textarea text before xterm's deferred
229 check runs, the old value comparison can send the replacement
without deleting the selected terminal text. Snapshot the selection
and emit DEL for each removed code point before the replacement; also
emit the correct number of DELs for standalone suffix deletions.
@itsnotlupus
itsnotlupus force-pushed the fix/android-ime-tail-replacement branch from 410fc42 to a6336fa Compare November 2, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant