sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
4k stars 109 forks source link

"null" title flash when tabbing in between files in DiffviewFilePanel and DiffviewFileHistoryPanel #312

Closed charbelnicolas closed 1 year ago

charbelnicolas commented 1 year ago

When tabbing or double clicking for the first time on a file while in the DiffviewFilePanel or DiffviewFileHistoryPanel, the window title will flash a "null" text before actually showing the name of the file.

20230303_152622

I don't know if this is hard to fix or impossible but it gets a bit annoying :) and it feels a bit glitchy.

https://user-images.githubusercontent.com/14960414/222824085-7c4b60fd-c193-4fa2-ab7f-dfbac0eb36ff.mp4

sindrets commented 1 year ago

This would be difficult to circumvent, and with little benefit.

There is nothing "glitchy" going on. When opening an entry that doesn't have all of it's buffers ready we temporarily load in the null buffer while waiting for git to provide the file content for all the buffers in the layout.