diff options
author | Oliver Kiddle <opk@zsh.org> | 2015-08-12 18:02:57 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2015-08-12 18:06:03 +0200 |
commit | cf77e28a3fe46035faf6c1815cb7dbc92207e5f4 (patch) | |
tree | 25a7b63b3697ffd3b06a8b9954230b0cc69495db /Completion/Unix/Command/_git | |
parent | 4f509c6201968e1e283dbcf34a40a4cb2dea4267 (diff) | |
download | zsh-cf77e28a3fe46035faf6c1815cb7dbc92207e5f4.tar.gz zsh-cf77e28a3fe46035faf6c1815cb7dbc92207e5f4.tar.xz zsh-cf77e28a3fe46035faf6c1815cb7dbc92207e5f4.zip |
36127: assorted minor completion function changes
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r-- | Completion/Unix/Command/_git | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 4357b7448..a5e44641b 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5188,7 +5188,7 @@ _git_commands () { local -a aliases __git_extract_aliases local cmdtype len dup sep - local -a allcmds allmatching alts disp + local -a allcmds allmatching alts disp expl zstyle -s ":completion:${curcontext}:" list-separator sep || sep=-- for cmdtype in $cmdtypes aliases; do @@ -5202,7 +5202,8 @@ _git_commands () { allcmds+=( ${(P)${:-${cmdtype}_m}} ) done zstyle -T ":completion:${curcontext}:" verbose && disp=(-ld '${cmdtype}_d') - compadd -O allmatching -a allcmds + _description '' expl '' # get applicable matchers + compadd "$expl[@]" -O allmatching -a allcmds len=${#${(O)allmatching//?/.}[1]} # length of longest match for cmdtype in aliases $cmdtypes; do local -a ${cmdtype}_d |