Merge pull request #128 from knu/patch-1
Do not leak a variable: cdpath_dir.
This commit is contained in:
commit
63a720af9b
|
@ -164,6 +164,7 @@ _zsh_highlight_main_highlighter_check_path()
|
||||||
[[ -z $expanded_path ]] && return 1
|
[[ -z $expanded_path ]] && return 1
|
||||||
[[ -e $expanded_path ]] && return 0
|
[[ -e $expanded_path ]] && return 0
|
||||||
# Search the path in CDPATH
|
# Search the path in CDPATH
|
||||||
|
local cdpath_dir
|
||||||
for cdpath_dir in $cdpath ; do
|
for cdpath_dir in $cdpath ; do
|
||||||
[[ -e "$cdpath_dir/$expanded_path" ]] && return 0
|
[[ -e "$cdpath_dir/$expanded_path" ]] && return 0
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user