[BUG] Crash in vim normal mode when E (endOfWord) is pressed at the end of the current prompt
Resolved 💬 5 comments Opened Jun 12, 2025 by eclbg Closed Dec 19, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.21 (Claude Code)
- Operating System: MacOS 14.5
- Terminal: Kitty + tmux
Bug Description
Steps to Reproduce
- Launch claude with
claude - Use vim mode
- press ESC to switch to NORMAL mode
- press E
Expected Behavior
Not a crash. Cursor should stay at the end of the prompt input
Actual Behavior
╭─────────────────
│ > hello
╰─────────────────
RangeError: Maximum call stack size exceeded
at A8.isOverWhitespace (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:719:399)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1741)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
at A8.endOfWORD (file:///Users/eclbg/.local/share/mise/installs/node/22.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1834)
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗