zsh 5.0.9 compatibility: Don't wrap the new 'bracketed-paste' widget.

This is required to support highlighting of the pasted region, such as
    zle_highlight+=( paste:... )
.

The underlying problem might be related to the one explained in workers/35870.
This commit is contained in:
Daniel Shahaf 2015-07-23 12:57:15 +00:00
parent 3dc5741900
commit 5a3b584fd1

View File

@ -139,7 +139,7 @@ _zsh_highlight_bind_widgets()
# Override ZLE widgets to make them invoke _zsh_highlight. # Override ZLE widgets to make them invoke _zsh_highlight.
local cur_widget local cur_widget
for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|yank*)}; do for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|bracketed-paste|which-command|beep|yank*)}; do
case $widgets[$cur_widget] in case $widgets[$cur_widget] in
# Already rebound event: do nothing. # Already rebound event: do nothing.