zle: don't override yank/yank-pop
`yank-pop` relies on the fact that the last zle command is `yank` or `yank-pop` to work correctly. Rewriting them prevents this check to work correctly breaking `yank-pop`. This fix just disallow overriding of those two zle commands. As a side-effect, syntax highlighting will not happen when using. This fixes #99.
This commit is contained in:
parent
5320f1e18d
commit
74a183447d
@ -134,7 +134,7 @@ _zsh_highlight_bind_widgets()
|
||||
|
||||
# Override ZLE widgets to make them invoke _zsh_highlight.
|
||||
local cur_widget
|
||||
for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep)}; do
|
||||
for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|yank*)}; do
|
||||
case $widgets[$cur_widget] in
|
||||
|
||||
# Already rebound event: do nothing.
|
||||
|
Loading…
Reference in New Issue
Block a user