[PATCH v2 20/45] completion: zsh: fix extra space on foo=
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Jun 18, 2021, 18:24 UTC
- Message-ID
- <20210618182518.697912-21-felipe.contreras@gmail.com>
- In-Reply-To
- <20210618182518.697912-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 f3e8cb7535..56a1bb16b0 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -87,7 +87,7 @@ __gitcomp () fi c="$c${4-}" case $c in - --*=|*.) ;; + *=|*.) ;; *) c="$c " ;; esac array+=("$c")
-- 2.32.0