Browse Source

make $pattern local to _zsh_highlight_pattern_highlighter #97

Signed-off-by: Takeshi Banse <takebi@laafc.net>
pull/100/head
Takeshi Banse 11 years ago
parent
commit
b4e667795c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      highlighters/pattern/pattern-highlighter.zsh

+ 1
- 0
highlighters/pattern/pattern-highlighter.zsh View File

@ -42,6 +42,7 @@ _zsh_highlight_pattern_highlighter_predicate()
_zsh_highlight_pattern_highlighter()
{
setopt localoptions extendedglob
local pattern
for pattern in ${(k)ZSH_HIGHLIGHT_PATTERNS}; do
_zsh_highlight_pattern_highlighter_loop "$BUFFER" "$pattern"
done

Loading…
Cancel
Save