zsh-syntax-highlighting icon indicating copy to clipboard operation
zsh-syntax-highlighting copied to clipboard

History expansions with pasted words

Open danielshahaf opened this issue 3 years ago • 1 comments

% 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.

danielshahaf avatar Nov 07 '21 21:11 danielshahaf

Aside: I dumped region_highlight there by doing:

f() { typeset -p region_highlight > /dev/tty }
zle -N f
bindkey '^T' f

danielshahaf avatar Nov 07 '21 21:11 danielshahaf