coc.nvim icon indicating copy to clipboard operation
coc.nvim copied to clipboard

Diagnostic popup cause flicker in vim

Open dedowsdi opened this issue 6 years ago • 3 comments

Diagnostic popup window cause flicker in vim 8.2 1-766, urxvt v9.22, ubuntu18.04. After some debugging, the culprit is this line: https://github.com/neoclide/coc.nvim/blob/95e7ca83242e38c162ac85fba875faee81f0b372/autoload/coc/util.vim#L220

vim redraw everything if you change signcolumn, even for a popup window, not sure if it's a bug.

AFAIK, signcolumn defaults to no for vim popup window.

Comment it would solve the issue, but I don't know how would it affect neovim.

This won't happen inside tmux.

dedowsdi avatar May 30 '20 10:05 dedowsdi

Thanks for the tip.

chemzqm avatar May 30 '20 10:05 chemzqm

There is something wrong with my urxvt, it flickers after a full screen scroll. I guess it's the same reason why change 'signcolumn' flickers.

Most people can't reproduce it, see this question if you have the same problem.

Sorry for the noise.

dedowsdi avatar Jun 02 '20 03:06 dedowsdi

I have the same issue on Vim 8.2.850, iTerm2 3.3.9, macOS 10.15.4. It is hard to see if run with the mini.vim but if I run with my vimrc it flickers a lot:

bad

Confirm that remove call setwinvar(winid, '&signcolumn', 'no') line in util.vim can help.

hdnha11 avatar Jun 02 '20 06:06 hdnha11