-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Diffview flashes current window's open buffer when showing file diff or history #509
Comments
I could be wrong, but based on some debugging I did some time ago, I think this is just how neovim operates when you open a new tab (i.e. it more or less functions similarly to |
It could be... but how come the very first time it opens it does so cleanly without flashing anything? |
Maybe it's just from setting up the multiple windows after There's actually a vim option to slow down redrawing I believe (for debugging). That might help give some answers/insight into what is going on to cause the flashes. Check out |
Description
I don't think I had noticed this in the previous months but now it's really hard to unsee. When opening a Diffview window (either DiffviewOpen or DiffviewFileHistory), unless it's the very first time opening it (it is possible then to fix and not flash a buffer!), it will flash the current focused window buffer on both Diffview editor windows.
Let's assume I have this window open:
After opening a Diffview window once, If I open Diffview again, every consequent DiffviewOpen will flash the current focused buffer first instead of showing the right contents.
And it is then that the correct buffer will show:
Here's a video:
https://drive.google.com/file/d/11-etwvc3RU5f5bLy2_YVllcG0jYz5CY3/view?usp=sharing
Expected behavior
I expect to transition correctly into the desired Diffview output instead of seeing a flash of my current focused window buffer.
Actual behavior
I see a flash of buffer content that is not correct.
Steps to reproduce
Health check
Log info
Relevant info from
:DiffviewLog
Neovim version
Operating system and version
Linux 6.9.3-arch1-1 x86_64 GNU/Linux
Minimal config
The text was updated successfully, but these errors were encountered: