summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-08 07:37:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-08 18:44:32 (GMT)
commit734b2f0532d847a9f566183982f83ddea8d8d197 (patch)
tree3622d836bfc325c73be5a3733046825e9d898998 /contrib/completion
parent2bcf694b1892dca372c6d1d64602a017d7291899 (diff)
downloadgit-734b2f0532d847a9f566183982f83ddea8d8d197.zip
git-734b2f0532d847a9f566183982f83ddea8d8d197.tar.gz
git-734b2f0532d847a9f566183982f83ddea8d8d197.tar.bz2
completion: synchronize zsh wrapper
So it's closer to the full zsh wrapper. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/completion/git-completion.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 84dbf19..b61f6c2 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
}