Skip to content

Commit 7b82b88

Browse files
committed
'main': Don't leak the PATH_DIRS options.
Found-by: m0viefreak (in #298)
1 parent ef4bfe5 commit 7b82b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highlighters/main/main-highlighter.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ _zsh_highlight_main_add_region_highlight() {
8888
# called inside a $(...) subshell, so the effects will be local.
8989
_zsh_highlight_main__type() {
9090
if (( $#options_to_set )); then
91-
setopt $options_to_set;
91+
setopt localoptions $options_to_set;
9292
fi
9393
LC_ALL=C builtin type -w -- $1 2>/dev/null
9494
}

0 commit comments

Comments
 (0)