diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2020-10-28 03:07:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-28 22:30:59 +0100 |
commit | cf6ce01660ada0286193025f7358c2d52bdb4fae (patch) | |
tree | a86d4d66ee6bed32d9f9ac0f17547f55b275e54b /contrib/completion/git-completion.zsh | |
parent | completion: zsh: trivial cleanup (diff) | |
download | git-cf6ce01660ada0286193025f7358c2d52bdb4fae.tar.xz git-cf6ce01660ada0286193025f7358c2d52bdb4fae.zip |
completion: zsh: simplify nl_append
It's exactly the same as __gitcomp_nl(), no need to duplicate code.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.zsh')
-rw-r--r-- | contrib/completion/git-completion.zsh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index 234e4278a2..7126c75001 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -119,10 +119,7 @@ __gitcomp_nl () __gitcomp_nl_append () { - emulate -L zsh - - compset -P '*[=:]' - compadd -Q -S "${4- }" -p "${2-}" -- ${(f)1} && _ret=0 + __gitcomp_nl "$@" } __gitcomp_file_direct () |