-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support vi linewise region causes: unhandled ZLE widget #340
Comments
Could you please show the output of |
The error message is printed by |
is this history-substring-search-up a standard zle widget or is it comming from another plugin? |
I only see the error once when my .zshrc is loaded, and whilst trying to create a minimum repro it seems that it only happens when bindkey references Here's the output @danielshahaf:
Minimum repro:
Of course, moving the bindkey statements after the |
Thanks for the minimal reproduction. I can reproduce that error message with just: % zmodload zsh/terminfo
% bindkey $terminfo[kcuu1] history-substring-search-up
% source zsh-syntax-highlighting.zsh
zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-up' However, unlike you, I can reproduce it both with d13da0c and with its predecessor b9112ae. I'm afraid that's working as designed: z-sy-h currently works by rebinding all widgets. When it encounters an undefined widget, it can't wrap that widget, so it warns. (Consequently, invoking that widget — in this case, pressing ↑ or ↓ — will not recompute highlighting.) As to a workaround, moving the bindkeys below the
No, it didn't. I can't think of any reason your reproduction script would behave differently with d13da0c compared to b9112ae (its predecessor). |
Testing again it seems that b9112ae is actually the offending commit, if I rebase without it, the error goes away. I could've sworn I tested with it before opening up this issue, sorry about that. Anyway, thanks for looking in to this, I'll probably just settle for moving my bindkey statements. |
Done: users/21729 |
Upstream says this difference is intentional. I suppose this may affect other configurations / widgets, but for the reasons given above, I think warning here is appropriate... so I'm closing this, but we can revisit this in the future if it turns out to have wider repercussions. Thanks again for the report! |
Sounds good, thanks for investigating! |
With the latest commit (d13da0c) on master, I started seeing the following errors:
Looking at the commit I don't see anything obvious, but checking out the previous makes the error disappear.
The text was updated successfully, but these errors were encountered: