Don't leak $REPLY into global scope.

Fixes issue #213.
This commit is contained in:
Daniel Shahaf 2015-10-20 00:21:11 +00:00
parent bde1c83af1
commit 3576df29aa

View File

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