Permalink
Browse files

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

  • Loading branch information...
1 parent 670961a commit 287167d4531c158382d24e634bc9923ebe3523db @Caldarion Caldarion committed with nicoulaj Sep 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 highlighters/main/main-highlighter.zsh
@@ -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
}

0 comments on commit 287167d

Please sign in to comment.