From bb7fcb79fad797a40077bebaf6f4e4a93c9d8163 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Sun, 12 Jun 2011 23:09:59 +0200 Subject: [PATCH] Fix #56: tolerance to WARN_GLOBAL option --- zsh-syntax-highlighting.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 1b07022..924836b 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -42,6 +42,8 @@ typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS # This function is supposed to be called whenever the ZLE state changes. _zsh_highlight() { + setopt localoptions nowarncreateglobal + # Store the previous command return code to restore it whatever happens. local ret=$?