claude-code - 💡(How to fix) Fix Thai text input: Backspace deletes entire grapheme cluster instead of one code point at a time

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

On Windows, when typing Thai text in the Claude Code prompt, pressing Backspace removes an entire grapheme cluster (the visible syllable) at once instead of removing one Unicode code point at a time. This makes it difficult to correct individual tone marks or vowels.

Root Cause

Thai writing combines base consonants with stacked vowels and tone marks as separate code points. Correcting a single mark (e.g., changing tone ่ to ้) is very common, and the current behavior forces re-typing the whole syllable on every small fix. This adds friction for Thai-speaking users.

RAW_BUFFERClick to expand / collapse

Summary

On Windows, when typing Thai text in the Claude Code prompt, pressing Backspace removes an entire grapheme cluster (the visible syllable) at once instead of removing one Unicode code point at a time. This makes it difficult to correct individual tone marks or vowels.

Steps to reproduce

  1. Open Claude Code in Windows Terminal (PowerShell) on Windows 11.
  2. Type the Thai word "ถี่" — three code points: ถ (U+0E16), ี (U+0E35), ่ (U+0E48).
  3. Press Backspace once.

Expected behavior

Backspace should remove only the last code point — first ่, then ี, then ถ — one code point per keypress. This matches how Notepad, browsers, VS Code, and most native Windows text inputs behave with Thai text, and it matches how Thai users actually type: one mark at a time.

Actual behavior

A single Backspace removes all three code points ("ถี่") at once. There is no way to delete only the tone mark or only the vowel — the entire syllable must be retyped for any small correction.

Why this matters

Thai writing combines base consonants with stacked vowels and tone marks as separate code points. Correcting a single mark (e.g., changing tone ่ to ้) is very common, and the current behavior forces re-typing the whole syllable on every small fix. This adds friction for Thai-speaking users.

Environment

  • OS: Windows 11 Pro (10.0.26200)
  • Terminal: Windows Terminal + PowerShell 5.1
  • Shell input: Claude Code prompt

Suggested resolution

Consider deleting by Unicode code point (or Thai-aware boundaries) on Backspace, at least as an opt-in setting. Word-delete shortcuts (Ctrl+Backspace) could keep current cluster/word behavior.

Thank you for your great work on Claude Code!

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Backspace should remove only the last code point — first ่, then ี, then ถ — one code point per keypress. This matches how Notepad, browsers, VS Code, and most native Windows text inputs behave with Thai text, and it matches how Thai users actually type: one mark at a time.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Thai text input: Backspace deletes entire grapheme cluster instead of one code point at a time