From 7b82b88a7166cf3b04e452dfb4bda8706631aa46 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 12 May 2016 19:24:00 +0000 Subject: [PATCH] 'main': Don't leak the PATH_DIRS options. Found-by: m0viefreak (in #298) --- highlighters/main/main-highlighter.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 0456739..eaba198 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -88,7 +88,7 @@ _zsh_highlight_main_add_region_highlight() { # called inside a $(...) subshell, so the effects will be local. _zsh_highlight_main__type() { if (( $#options_to_set )); then - setopt $options_to_set; + setopt localoptions $options_to_set; fi LC_ALL=C builtin type -w -- $1 2>/dev/null }