Browse Source

'main': Don't leak the PATH_DIRS options.

Found-by: m0viefreak
(in #298)
pull/318/head
Daniel Shahaf 8 years ago
parent
commit
7b82b88a71
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      highlighters/main/main-highlighter.zsh

+ 1
- 1
highlighters/main/main-highlighter.zsh View File

@ -88,7 +88,7 @@ _zsh_highlight_main_add_region_highlight() {
# called inside a $(...) subshell, so the effects will be local. # called inside a $(...) subshell, so the effects will be local.
_zsh_highlight_main__type() { _zsh_highlight_main__type() {
if (( $#options_to_set )); then if (( $#options_to_set )); then
setopt $options_to_set;
setopt localoptions $options_to_set;
fi fi
LC_ALL=C builtin type -w -- $1 2>/dev/null LC_ALL=C builtin type -w -- $1 2>/dev/null
} }

Loading…
Cancel
Save