소스 검색

Merge pull request #128 from knu/patch-1

Do not leak a variable: cdpath_dir.
pull/127/merge
Julien Nicoulaud 10 년 전
부모
커밋
63a720af9b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      highlighters/main/main-highlighter.zsh

+ 1
- 0
highlighters/main/main-highlighter.zsh 파일 보기

@ -164,6 +164,7 @@ _zsh_highlight_main_highlighter_check_path()
[[ -z $expanded_path ]] && return 1
[[ -e $expanded_path ]] && return 0
# Search the path in CDPATH
local cdpath_dir
for cdpath_dir in $cdpath ; do
[[ -e "$cdpath_dir/$expanded_path" ]] && return 0
done

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