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=$?