[BUG] Ctrl+G external editor leaves large empty whitespace gap in standard macOS Terminal
Preflight Checklist
- [ ] 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?
After using Ctrl+G to open $EDITOR (vim), saving and closing leaves a large block of empty whitespace in the conversation. "Save and close editor to continue..." banners appear with ~50+ blank lines between and below them, pushing the input prompt far off screen.
This is similar to #32467 but reproduces in the standard macOS Terminal.app without tmux or any terminal multiplexer.
It is also similar to #32744 , but the conversation history does not get wiped, it just requires scrolling up for a while to find it.
What Should Happen?
Prompt appears directly below the conversation with no extra whitespace.
Error Messages/Logs
Steps to Reproduce
- Open macOS Terminal.app
- Start
claude - Press Ctrl+G to open vim
- Save and close (
:wq!) - Observe large empty whitespace between editor banners and the input prompt
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.72
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- #32467 — similar whitespace issue in tmux
- #32744 — similar issue in standard macOS terminal
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗