mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
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:
@@ -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_"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user