claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Word deletion doesn't work with non-latin alphabet

Open Kolger opened this issue 6 months ago • 1 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [x] Other: Max Account
  • Claude CLI version: 1.0.18 (Claude Code)
  • Operating System: macOS 15.5
  • Terminal: Tested in multiple terminals: Ghostty, vscode terminal, iTerm2, Terminal app

Bug Description

When text in Claude Code contains non-latin characters, word deletion (opt + delete) deletes the whole text, not just the word. If there is a mixture of non-latin and latin characters, the non-latin text will be deleted up to the first latin symbol. The same issue occurs with word navigation (opt + ← / opt + →).

Steps to Reproduce

  1. Type text using only non-latin characters (e.g., 'тестовый текст на русском языке'). I've tested with Cyrillic and Thai characters.
  2. Navigate to the end of the text.
  3. Press opt + delete.

Expected Behavior

Only the last word should be deleted.

Actual Behavior

The entire text is deleted.

Additional Context

https://github.com/user-attachments/assets/2e1ecb58-9f77-4b20-9b79-317bc5129203

Kolger avatar Jun 11 '25 10:06 Kolger

ticket metioned above is a similar case, but for Windows with Ctrl+arrow

CoderF3ff avatar Jun 25 '25 11:06 CoderF3ff

The problem still exists

Kolger avatar Aug 10 '25 14:08 Kolger

@anthropic when fix?

krrazy8 avatar Aug 18 '25 10:08 krrazy8

I can confirm this issue on macOS in PyCharm’s integrated terminal using claude-code

BysterOne avatar Sep 29 '25 23:09 BysterOne

The problem still exists in Claude 2.0.1

Kolger avatar Sep 30 '25 08:09 Kolger

@anthropics when fix? 🤔

krrazy8 avatar Sep 30 '25 13:09 krrazy8

It seems like nobody uses anything other than English in @anthropics

Kolger avatar Dec 03 '25 10:12 Kolger

Fixed in 2.0.67 🎉

Perlence avatar Dec 12 '25 08:12 Perlence

Fixed in 2.0.67 🎉

Yes, at last! It was very annoying. I spent a lot of time typing the same thing that I had removed by accident.

Thank you, @cirospaciari

Kolger avatar Dec 12 '25 08:12 Kolger

@Kolger Off topic: For future reference, you didn't have to type the same thing again! You can either press Ctrl+- to undo the previous action, e.g. deletion, or Ctrl+Y to paste from the kill ring. Might save you some time if it happens again!

Perlence avatar Dec 12 '25 09:12 Perlence

@Perlence Thank you, didn't know this one :) I've been using ctrl+g to open external editor for a while to avoid this.

Kolger avatar Dec 12 '25 09:12 Kolger