From f84f9319d8531cf5a24a1e5cfcab80c71831c538 Mon Sep 17 00:00:00 2001 From: Andreas Gahr Date: Fri, 9 Sep 2011 16:07:49 +0200 Subject: [PATCH] supposed fix for issue #73 and issue #74 --- highlighters/main/main-highlighter.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index b30f75c..3331660 100755 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -138,7 +138,7 @@ _zsh_highlight_main_highlighter_check_path() [[ -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 + [[ ${BUFFER[1]} != "-" && ${#BUFFER} == $end_pos && -n $(print "${(Q)~arg}"*(N)) ]] && return 0 return 1 }