[BUG] Ctrl-B cursor movement stops working after using Ctrl-R or Ctrl-G
Resolved 💬 5 comments Opened Feb 1, 2026 by shibayu36 Closed Apr 20, 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?
Ctrl-B (Emacs-style "move cursor backward") stops working after using Ctrl-R (history search) or Ctrl-G (open editor).
- Works fine immediately after startup
- After using Ctrl-R or Ctrl-G, Ctrl-B no longer moves the cursor backward
- Recoverable by resuming with
claude -c
What Should Happen?
The Emacs-style Ctrl-B cursor movement should work consistently, regardless of what operations were performed before.
Error Messages/Logs
None (no error output, the key simply doesn't respond)
Steps to Reproduce
- Open Terminal.app
- Run
bash --noprofile --norc - Run
npx @anthropic-ai/claude-code@2.1.29 - Type some text (e.g., "test")
- Press Ctrl-B → cursor moves left (OK)
- Press Ctrl-R to open history search, then ESC to close
- Press Ctrl-B → no response (NG)
Note: Ctrl-G (open external editor) also triggers the same issue.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.2
Claude Code Version
2.1.29 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- Last Working Version: 2.1.2
- First Broken Version: 2.1.3 (confirmed via bisect)
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗