* enable command lines starting with a hyphen.

This commit is contained in:
Guido 2011-06-16 04:28:59 -07:00
parent 56801a6b42
commit f26310d97e

View File

@ -138,7 +138,9 @@ _zsh_highlight_main_highlighter_check_path()
[[ -z ${(Q)arg} ]] && return 1 [[ -z ${(Q)arg} ]] && return 1
[[ -e ${(Q)arg} ]] && return 0 [[ -e ${(Q)arg} ]] && return 0
[[ ! -e ${(Q)arg:h} ]] && return 1 [[ ! -e ${(Q)arg:h} ]] && return 1
[[ ${#BUFFER} == $end_pos && -n $(print ${(Q)arg}*(N)) ]] && return 0 if [[ ${BUFFER[1]} != "-" ]]; then
[[ ${#BUFFER} == $end_pos && -n $(print ${(Q)arg}*(N)) ]] && return 0
fi
return 1 return 1
} }