-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
suggestion breaks on fast vi movement #290
Comments
This commit removes an optimization that stops suggestion rendering when further keys are queued for processing. This optimization can lead to wrong results because there is no guarantee that the last queued key will invoke the `modify` widget (it could be a vi movement for example). In that case, no suggestion is rendered.
The problem is caused by an optimization in widgets.zsh. The optimization avoids getting multiple suggestions if still keys are queued for processing. However, there is no guarantee that the last key will invoke the suggestion rendering process; in my case the last key is a vi movement and no suggestion is rendered at all. In my opinion, this optimization should be removed. What do you think? |
This was just fixed on Will go out with the next release. |
If the user switches to
vicmd
and invokes a vi movement quickly enough (within theKEYTIMEOUT
interval) the suggestion preview will disappear. One possible solution is to decreaseKEYTIMEOUT
but that introdoces problems with key bindings that consist of multiple keys (for examplecc
,iw
or key bindings of the surrounding module). Is this a known problem?The text was updated successfully, but these errors were encountered: