From: Felipe Contreras Date: Wed, 8 May 2013 07:37:01 +0000 (-0500) Subject: completion: synchronize zsh wrapper X-Git-Tag: v1.8.4-rc0~243^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=734b2f0532d847a9f566183982f83ddea8d8d197;p=git completion: synchronize zsh wrapper So it's closer to the full zsh wrapper. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 84dbf19948..b61f6c2731 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -2663,7 +2663,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then --*=*|*.) ;; *) c="$c " ;; esac - array[$#array+1]="$c" + array+=("$c") done compset -P '*[=:]' compadd -Q -S '' -p "${2-}" -a -- array && _ret=0 @@ -2696,7 +2696,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then prev=${words[CURRENT-1]} let cword=CURRENT-1 emulate ksh -c __${service}_main - let _ret && _default -S '' && _ret=0 + let _ret && _default && _ret=0 return _ret }