diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2020-10-28 05:06:59 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-29 00:30:59 +0300 |
commit | ecaf798999c1cb730560668710584759151b6624 (patch) | |
tree | f5c8c605b3fb9a2fcb3ea701660c03a32733bf22 /contrib | |
parent | 2f459b0060948299be4bfa00c21f574140dcbe63 (diff) |
completion: zsh: simplify direct compadd
Instead of manually removing the suffix so zsh can add its own, we can
tell zsh to add no suffix, so we don't have to remove it.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index 1ef02f936c..3689bcbd6c 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -101,7 +101,7 @@ __gitcomp_direct () emulate -L zsh compset -P '*[=:]' - compadd -Q -- ${${(f)1}% } && _ret=0 + compadd -Q -S '' -- ${(f)1} && _ret=0 } __gitcomp_direct_append () |