瀏覽代碼

simplify check for bracket under cursor

pull/63/head
garinger 13 年之前
父節點
當前提交
2fe9505647
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. +2
    -4
      highlighters/brackets/brackets-highlighter.zsh

+ 2
- 4
highlighters/brackets/brackets-highlighter.zsh 查看文件

@ -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
}

Loading…
取消
儲存