'main': Add a comment.

This commit is contained in:
Daniel Shahaf 2020-01-12 19:48:49 +00:00
parent 08edf8db7f
commit b1f36d9c5f

View file

@ -988,6 +988,7 @@ _zsh_highlight_main_highlighter_check_path()
# Search the path in CDPATH
if [[ $expanded_path != /* ]]; then
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
[[ -e "$cdpath_dir/$expanded_path" ]] && return 0
done