-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
nvim_buf_call() causes rendering artifacts with :redrawstatusline #16872
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
Comments
I wonder if this is because of the |
Yes, it is because of |
Merely calling autocmd DiagnosticChanged * if +expand('<abuf>') == bufnr('') | redrawstatus | endif |
Apologies, I missed that in your original comment (I really ought to stop replying to issues on mobile). It seems that the issue is really with |
Ah, no problem, I edited the body of the issue after posting it.
Just tried - no effect. |
I had a similar issue with lightline:
Lightline thinks that the Wrapping the command with
|
This bug may be fixed by using |
@tomtomjhj By the way, |
@dmitmel Ah, thanks. |
Uh oh!
There was an error while loading. Please reload this page.
Neovim version (nvim -v)
0.6.1
Vim (not Nvim) behaves the same?
N/A
Operating system/version
Arch Linux
Terminal name/version
kitty 0.23.1
$TERM environment variable
xterm-kitty
Installation
pacman, official repositories
How to reproduce the issue
The minimal vimrc:
Inside the neovim work tree, run
nvim -u minimal_init.vim runtime/lua/vim/lsp/buf.lua runtime/lua/vim/lsp/*.lua
. Strictly speaking, opening multiple files like this is not a requirement, but it just shows more rendering artifacts with the statusline. Thebuf.lua
file is first in the list because there are some diagnostics reported for it, and they will be shown in the statusline.Expected behavior
Neovim v0.6.0
simplescreenrecorder-2022-01-01_18.58.42.mp4
Actual behavior
Neovim v0.6.1 (the pink flashing box is caused by
redrawstatus
)simplescreenrecorder-2022-01-01_18.59.44.mp4
Additional context
The problem is caused by #16474 and #16589. I believe that a proper solution would be to execute the autocommands with Vim's internal functions (
apply_autocmds_group
?), that only change the effective buffer (<abuf>
) instead of also changing the real current buffer.The text was updated successfully, but these errors were encountered: