[PATCH 17/47] completion: zsh: fix extra space on foo=
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Jan 1, 2021, 02:15 UTC
- Message-ID
- <20210101021622.798041-18-felipe.contreras@gmail.com>
- In-Reply-To
- <20210101021622.798041-1-felipe.contreras@gmail.com>
Upstream commit e1e00089da fixed the issue for Bash, but not for Zsh.
When we are typing configurations an = at the end signifies we still want to type the value.
Can be tested with:
git -c log.d<tab>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- contrib/completion/git-completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index 6232d0a823..073f7d91d8 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -86,7 +86,7 @@ __gitcomp () fi c="$c${4-}" case $c in - --*=|*.) ;; + *=|*.) ;; *) c="$c " ;; esac array+=("$c")
-- 2.30.0