On Fri, Jun 21, 2019 at 5:31 PM Felipe Contreras
<[email protected]> wrote:
>
> Many callers append a space suffix, but zsh automatically appends a
> space, making the completion add two spaces, for example:
> --- a/contrib/completion/git-completion.zsh
> +++ b/contrib/completion/git-completion.zsh
> @@ -73,7 +73,7 @@ __gitcomp_direct ()
>
> local IFS=$'\n'
> compset -P '*[=:]'
> - compadd -Q -- ${=1} && _ret=0
> + compadd -Q -- ${${=1}% } && _ret=0
This is better actually:
compadd -Q -S '' -- ${=1} && _ret=0
--
Felipe Contreras