소스 검색

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
}

불러오는 중...
취소
저장