zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.34k stars 2.87k forks source link

Inline diff viewer closing itself #19007

Open alexkirsz opened 4 days ago

alexkirsz commented 4 days ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When I try to show an inline diff, the diff viewer closes itself after less than a second.

To open the inline diff, I click on the fat yellow/green/red margin.

As far as I know, this bug was already there last time I tried Zed (~3 months ago).

https://github.com/user-attachments/assets/95594e11-d273-4a46-8426-7a7f2db1f868

Environment

Zed: v0.156.0 (Zed) OS: macOS 14.6.1 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

No response

alexkirsz commented 4 days ago

Might be related to

notpeter commented 4 days ago

This sounds really silly, but do you perhaps have a second (maybe wireless) keyboard with something pushing the Escape key?

alexkirsz commented 3 days ago

@notpeter I have two keyboards: my MBP's keyboard, which I don't use, and my wireless keyboard, which is how I interact with the editor. I don't think the Escape key is being pressed spuriously, as it would likely show in other parts of my workflow, but I will check.