From f4d3dcb42f58da709e8784ade7e4169c8d4a5bcd Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Sun, 24 Apr 2016 21:06:43 -0500 Subject: [PATCH] 'brackets': Move highlight call outside conditional --- highlighters/brackets/brackets-highlighter.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/highlighters/brackets/brackets-highlighter.zsh b/highlighters/brackets/brackets-highlighter.zsh index 9e94c83..5a2d939 100644 --- a/highlighters/brackets/brackets-highlighter.zsh +++ b/highlighters/brackets/brackets-highlighter.zsh @@ -80,11 +80,10 @@ _zsh_highlight_brackets_highlighter() for pos in ${(k)levelpos}; do if [[ -n $matching[$pos] ]] && [[ $typepos[$pos] == $typepos[$matching[$pos]] ]]; then style=bracket-level-$(( (levelpos[$pos] - 1) % bracket_color_size + 1 )) - _zsh_highlight_add_highlight $pos $((pos + 1)) $style else style=bracket-error - _zsh_highlight_add_highlight $pos $((pos + 1)) $style fi + _zsh_highlight_add_highlight $pos $((pos + 1)) $style done # If cursor is on a bracket, then highlight corresponding bracket, if any