Merge branch 'mm/zsh-completion-regression-fix' into next

* mm/zsh-completion-regression-fix:
  bash-completion: don't add quoted space for ZSH (fix regression)
This commit is contained in:
Junio C Hamano
2012-01-23 12:53:09 -08:00

View File

@@ -534,6 +534,12 @@ __gitcomp_nl ()
fi
fi
# ZSH would quote the trailing space added with -S. bash users
# will appreciate the extra space to compensate the use of -o nospace.
if [ -n "${ZSH_VERSION-}" ] && [ "$suffix" = " " ]; then
suffix=""
fi
IFS=$s
COMPREPLY=($(compgen -P "${2-}" -S "$suffix" -W "$1" -- "$cur_"))
}