Skip to content

Commit 734b2f0

Browse files
felipecgitster
authored andcommitted
completion: synchronize zsh wrapper
So it's closer to the full zsh wrapper. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2bcf694 commit 734b2f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
26632663
--*=*|*.) ;;
26642664
*) c="$c " ;;
26652665
esac
2666-
array[$#array+1]="$c"
2666+
array+=("$c")
26672667
done
26682668
compset -P '*[=:]'
26692669
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0
@@ -2696,7 +2696,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
26962696
prev=${words[CURRENT-1]}
26972697
let cword=CURRENT-1
26982698
emulate ksh -c __${service}_main
2699-
let _ret && _default -S '' && _ret=0
2699+
let _ret && _default && _ret=0
27002700
return _ret
27012701
}
27022702

0 commit comments

Comments
 (0)