소스 검색

cleanup: Avoid colon after parameter expansion to avoid risking introducing a colon modifier.

pull/301/head
Daniel Shahaf 8 년 전
부모
커밋
c54c076cfa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      zsh-syntax-highlighting.zsh

+ 2
- 2
zsh-syntax-highlighting.zsh 파일 보기

@ -148,14 +148,14 @@ _zsh_highlight_apply_zle_highlight() {
integer first="$3" second="$4"
# read the relevant entry from zle_highlight
local region="${zle_highlight[(r)$entry:*]}"
local region="${zle_highlight[(r)${entry}:*]}"
if [[ -z "$region" ]]; then
# entry not specified at all, use default value
region=$default
else
# strip prefix
region="${region#$entry:}"
region="${region#${entry}:}"
# no highlighting when set to the empty string or to 'none'
if [[ -z "$region" ]] || [[ "$region" == none ]]; then

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