Skip to content

Commit

Permalink
zle: don't override yank/yank-pop
Browse files Browse the repository at this point in the history
`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 sorin-ionescu#99.
vincentbernat committed Jun 29, 2014
1 parent 5320f1e commit 74a1834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-syntax-highlighting.zsh
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 74a1834

Please sign in to comment.