[BUG] "edit in nvim" breaks terminal rendering

Resolved 💬 15 comments Opened Oct 8, 2025 by Nek-12 Closed Dec 10, 2025

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?

With the new feature "edit prompt in nvim" (ctrl+g), on macOS, doing that breaks tui if a window is opened, and then an up arrow is pressed, or while Claude is working. This shows the regular claude window, and vim at the same time, alternating each frame. This leads to all kinds of jank:

<img width="1609" height="885" alt="Image" src="https://github.com/user-attachments/assets/07042ce5-2617-4d49-9580-2924ef024e78" />

I'm using Ghostty on MacOS, and nvim 0.11.4 as my editor.

What Should Happen?

no glitches

Error Messages/Logs

Steps to Reproduce

Included above

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.10

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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