mirror of
https://github.com/git/git.git
synced 2026-08-04 15:11:09 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
2f459b0060
commit
ecaf798999
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user