claude-code - 💡(How to fix) Fix [BUG] Ctrl+H deletes word instead of single character in Windows Terminal + clink [1 participants]

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…
GitHub stats
anthropics/claude-code#52795Fetched 2026-04-25 06:20:43
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

In the Claude Code CLI chat input, pressing Ctrl+H deletes an entire word backward instead of a single character. This is the behavior of Ctrl+Backspace/backward-kill-word, not the expected backward-delete-char (single character deletion).

This is a regression — it worked correctly in a previous version.

My environment is:

  • OS: Windows 10 Pro 22H2, Windows 11
  • Terminal: Windows Terminal with cmd / powershell / pwsh
  • Claude Code: 2.1.119

What Should Happen?

Ctrl+H should delete single character only.

Error Messages/Logs

Steps to Reproduce

  1. Execute Windows Terminal
  2. start powershell (or pwsh or cmd)
  3. execute claude.exe
  4. input "foo bar baz", then hit CTRL+H
  5. "baz" is deleted, not only "z"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.109

Claude Code Version

2.1.119

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

Downgrade to Claude Code version 2.1.109 to potentially resolve the Ctrl+H deletion issue.

Guidance

  • Verify that the issue is indeed a regression by testing version 2.1.109 as mentioned in the "Last Working Version" section.
  • Check if the problem persists across different terminals (e.g., cmd, powershell, pwsh) to isolate if it's a terminal-specific issue or a Claude Code issue.
  • Since the expected behavior is backward-delete-char (single character deletion), ensure that there are no conflicting keyboard shortcuts in the Windows Terminal settings or in the shell configuration that might be overriding the default Ctrl+H behavior.
  • Consider testing on a different operating system or environment to see if the issue is specific to Windows 10 Pro 22H2 or Windows 11.

Example

No specific code snippet is applicable in this scenario as the issue seems related to keyboard shortcut behavior rather than code implementation.

Notes

The provided information suggests a regression, but the operating system mentioned in the "Operating System" section (macOS) does not match the environment where the issue is reproduced (Windows 10 Pro 22H2, Windows 11). This discrepancy might affect the reproducibility or the approach to solving the issue.

Recommendation

Apply workaround: Downgrade to version 2.1.109, as it is confirmed to work correctly, while waiting for a potential fix in future versions of 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…

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 [BUG] Ctrl+H deletes word instead of single character in Windows Terminal + clink [1 participants]