diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 1441695..54d52a1 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -57,6 +57,7 @@ _zsh_highlight() local ret=$? setopt localoptions warncreateglobal + local REPLY # don't leak $REPLY into global scope # Do not highlight if there are more than 300 chars in the buffer. It's most # likely a pasted command or a huge list of files in that case..