From 3576df29aa06892f7f754fe2ac32456cf29be9ca Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 20 Oct 2015 00:21:11 +0000 Subject: [PATCH] Don't leak $REPLY into global scope. Fixes issue #213. --- zsh-syntax-highlighting.zsh | 1 + 1 file changed, 1 insertion(+) 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..