zsh-syntax-highlighting
zsh-syntax-highlighting copied to clipboard
History expansions with pasted words
% ho hello world
zsh: command not found: ho
% ec!!
echo hello world
hello world
%
In the above, ec!! is red (typeset -a region_highlight=( '0 4 fg=red,bold memo=zsh-syntax-highlighting' )), but shouldn't be.
Compare #713.
Aside: I dumped region_highlight there by doing:
f() { typeset -p region_highlight > /dev/tty }
zle -N f
bindkey '^T' f