-
Notifications
You must be signed in to change notification settings - Fork 201
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
Screen flicker when buffer completion is enabled for searching #1061
Comments
Are you still able to reproduce this on 0.12.*? If so, can you provide a repro.lua for this? I'm not able to reproduce this on my system with 0.10 or nightly with the default repro.lua |
Don't have time at this exact moment to make a repro.lua, but yes this problem still exists. It looks like the problem is with drawing the completion menu floating window specifically for command line completions. I can reproduce this simply by using the default blink config (so cmdline has the buffer source enabled), and then typing '/' and a search term with incsearch on. As I type, the incsearch highlights flicker. Disable cmdline sources (so no more blink floating window for the cmdline), flicker disappears. |
Yes. I use the same flicker.mov |
I've tried on the repro.lua on 0.10/nightly and on foot, kitty and alacritty but I still can't reproduce. If someone is able to, try playing around with the calls to |
Setting the decoration provider on every renderer:draw() command caused flickering of incsearch highlights when showing completions for / and ? search modes on the cmdline as characters were typed. Decoration providers only need to be set once and they remain active, so the fix here is create it when the renderer is created and remember the last bufnr that was drawn to, along with the columns. Fixes Saghen#1061
Spent a better part of the day debugging this and finally nailed down exactly what was causing it. PR to fix is up and linked to this issue. |
Setting the decoration provider on every renderer:draw() command caused flickering of incsearch highlights when showing completions for / and ? search modes on the cmdline as characters were typed. Decoration providers only need to be set once and they remain active, so the fix here is create it when the renderer is created and remember the last bufnr that was drawn to, along with the columns. Fixes Saghen#1061
Ugh, @Saghen hate to say this but the PR improved the flicker a little but didn't actually fully fix it. We may want to reopen this until I can dig into this more. |
Or, we can make a new issue. It's only flickering now when |
Lets do that @Saghen - I'll open a new issue to track flickering specifically with |
Make sure you have done the following
blink.cmp
<C-k>
on https://cmp.saghen.dev)Bug Description
With default sources:
flicker.mov
With
no.flicker.mov
Problem still exists when noice.nvim is disabled.
neovim
version0.10.3
blink.cmp
version0.10.0
The text was updated successfully, but these errors were encountered: