'main': Add a comment.
This commit is contained in:
parent
08edf8db7f
commit
b1f36d9c5f
|
@ -988,6 +988,7 @@ _zsh_highlight_main_highlighter_check_path()
|
||||||
# Search the path in CDPATH
|
# Search the path in CDPATH
|
||||||
if [[ $expanded_path != /* ]]; then
|
if [[ $expanded_path != /* ]]; then
|
||||||
local cdpath_dir
|
local cdpath_dir
|
||||||
|
# TODO: When we've dropped support for pre-5.0.6 zsh, use the *(Y1) glob qualifier here.
|
||||||
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