mirror of
https://github.com/git/git.git
synced 2024-11-28 04:23:30 +08:00
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>
This commit is contained in:
parent
2bcf694b18
commit
734b2f0532
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user