Ubuntu – How to stop pasted text being highlighted in terminals in Ubuntu 16.10

clipboardcommand linegnome-terminalzsh

Since upgrading to Ubuntu 16.10 from 16.04, every time I paste text into a terminal running zsh, that text is highlighted until I type another character. It doesn't seem to matter which terminal emulator I use (it happens both in gnome-terminal and terminator), all that seems to matter is that zsh is the shell (bash does not have the problem). How can I prevent this?

Best Answer

Finally found it (https://github.com/zsh-users/zsh-syntax-highlighting/issues/349):

zle_highlight+=(paste:none)