fix for issue #76. This was more ore less forgotten in pull request #75

This commit is contained in:
Andreas Gahr 2011-09-20 18:01:38 +02:00 committed by Julien Nicoulaud
parent 670961ad01
commit 287167d453

View File

@ -153,9 +153,9 @@ _zsh_highlight_main_highlighter_check_assign()
# Check if the argument is a path.
_zsh_highlight_main_highlighter_check_path()
{
[[ -z ${(Q)~arg} ]] && return 1
[[ -e ${(Q)~arg} ]] && return 0
[[ ! -e ${(Q)~arg:h} ]] && return 1
[[ -z "${(Q)~arg}" ]] && return 1
[[ -e "${(Q)~arg}" ]] && return 0
[[ ! -e "${(Q)~arg:h}" ]] && return 1
[[ ${BUFFER[1]} != "-" && ${#BUFFER} == $end_pos && -n $(print "${(Q)~arg}"*(N)) ]] && return 0
return 1
}