-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Avoid flashes in dynamic picker #11193
Comments
So like, |
This is not simple and requires a fundamental refactor of how redraws are handeled with regard to jobs so we delayed it to future work. |
I meant to respond to this in the pickers v2 PR but I must've forgotten. @pascalkuthe and I discussed it and to add context to what Pascal is saying above: the issue is that when any job completes we re-render. The dynamic picker uses a job to get the injector from the picker and set up the async search: helix/helix-term/src/ui/picker/handlers.rs Lines 161 to 180 in 22a0514
So we currently render both when the injector pushes new options (which we do want to cause a render) and when the job that calls |
It seems that the issue I've discovered in #9647 still persists, now in master.
It's minor, but I would expect that updating (i.e. clearing and populating) the picker item list happens in one frame before flushing the framebuffer to the terminal, to avoid flashes.
An asciinema to show the issue
The text was updated successfully, but these errors were encountered: