Skip to content
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

fix: incsearch flickering when typing characters during search #1305

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

jdrouhard
Copy link
Contributor

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 #1061

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
@Saghen Saghen merged commit d2fbc41 into Saghen:main Feb 23, 2025
4 checks passed
@Saghen
Copy link
Owner

Saghen commented Feb 23, 2025

Thank you! Seems like a nasty one so I really appreciate you taking the time to debug this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screen flicker when buffer completion is enabled for searching
2 participants