Sfoglia il codice sorgente

simplify check for bracket under cursor

pull/63/head
garinger 13 anni fa
parent
commit
2fe9505647
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. +2
    -4
      highlighters/brackets/brackets-highlighter.zsh

+ 2
- 4
highlighters/brackets/brackets-highlighter.zsh Vedi File

@ -79,10 +79,8 @@ _zsh_highlight_brackets_highlighter()
fi
done
((pos = CURSOR + 1))
if [[ -n $levelpos[$pos] ]]; then
local otherpos
((otherpos = -1))
[[ -n $matching[$pos] ]] && otherpos=$matching[$pos]
if [[ -n $levelpos[$pos] ]] && [[ -n $matching[$pos] ]]; then
local otherpos=$matching[$pos]
region_highlight+=("$((otherpos - 1)) $otherpos standout")
fi
}

Caricamento…
Annulla
Salva