mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-13 10:05:31 +08:00
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:
parent
3dc5741900
commit
5a3b584fd1
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user