Ctrl+Backspace and Ctrl+Arrow navigation issues with Cyrillic text
Resolved 💬 16 comments Opened Jul 5, 2025 by MR-SOME-HOPE Closed Dec 11, 2025
When working with Cyrillic (Unicode) text in Claude Code interactive mode, word-based keyboard shortcuts don't work correctly:
- Ctrl+Backspace - deletes the entire Cyrillic line instead of just the last word
- Ctrl+← / Ctrl+→ - jumps to the beginning/end of the entire line instead of moving between words
With Latin characters, both shortcuts work correctly:
- Ctrl+Backspace deletes only the last word
- Ctrl+Arrow keys navigate word by word
Expected behavior:
- Ctrl+Backspace should delete only the last Cyrillic word
- Ctrl+Arrow keys should navigate between Cyrillic words
Actual behavior:
- Ctrl+Backspace deletes the entire Cyrillic line
- Ctrl+Arrow keys jump to line start/end
Environment: Windows 11, WLS
16 Comments
Is it reproducing on macOS in any terminal I tried (ghostty, wezterm, goland, vscode).
How to reproduce:
Copy and paste to the Claude code terminal some cyrillic text, e.g.:
And try to navigate over it using Ctrl+← / Ctrl+→ . It will jump from the beginning to the end of the whole text and backwards.
Expected behavior
It should jump over words, as it does for English text like this:
#1943
Do you know if we have any plans for this issue?
It happens for a lot of non-English languages (Ukrainian, Bulgarian, etc)
Same thing with Alt-left and Alt-right - can't jump between Cyrillic words
@chrislloyd is there any chance this can get fixed please? Has been happening for quite a while, international users are suffering. All other similar TUI tools (OpenCode, etc) work fine. I think it might be regular expression fix.
Workaround
The issue is in
isOverWordChar()method using ASCII-only/\w/regex.One-line fix:
Then restart
claude.To restore:
What changed:
/\w/→/[\p{L}\p{N}_]/u(Unicode-aware word boundaries)Tested on Linux, Claude Code v2.0.22. Works with Cyrillic, should work with any Unicode text.
⚠️ Note: Will be overwritten on Claude Code updates.
@ShadowOfLoony tried that, I thought I'd let you know about "No such file or directory":
The issue appears to be is when you have multiple Node versions, echo returns multiple space-separated paths, and perl tries to open them as a single filename (which doesn't exist).
Here is improved version, stand-alone script:
Add mise version manager support, the same script, but slightly improved:
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Still not fixed. Do not close.
This issue still remains.
For example, with CC v2.0.62 under WSL installed by npm:
I contacted them on X, and afterwards they closed my issue #1943.
So I believe they’ve fixed it, and I hope it will be included in the next release.
@cirospaciari Thank you for fixing the
Alt+arrowissueCtrl+Backspace issue still remains in v2.0.67
Steps to reproduce:
UPDATE: Probably the same regression for Latin text as well
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
@it-sha did more work on that and fixed locally hopefully will be available soon