[BUG] Unable to delete prompt text that ends with a question mark

Resolved 💬 4 comments Opened Oct 15, 2025 by vjekoslav-leonard Closed Jan 9, 2026

Preflight Checklist

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

What's Wrong?

Deleting a prompt that ends with a question mark leaves the last letter and the question mark, and instead invokes the "?" option without deleting the letter.

To reproduce, write "How are you?", position your cursor at the beginning of the prompt and keep "Del" pressed. Once you have only "u?" left, the "?" option will shortly activate, then deactivate, but the text will be left intact. The same happens if you then position your cursor between the "u" and "?" and try "Backspace".

What Should Happen?

The prompt text should be fully deleted.

Error Messages/Logs

Steps to Reproduce

  1. Write "How are you?"
  2. Position the cursor to the beginning of the prompt.
  3. Press and hold the "Del" key

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.15 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗