diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-25 11:00:06 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-25 11:00:06 +0000 |
commit | 2f90974c38247cfcbcea034aaa861a3ed700bdc5 (patch) | |
tree | 2c196d70212d38399b13c79dd727e3777473c55f /Completion/Core/_all_labels | |
parent | 6623bb41b98142c24607790dc8311435d1c33257 (diff) | |
download | zsh-2f90974c38247cfcbcea034aaa861a3ed700bdc5.tar.gz zsh-2f90974c38247cfcbcea034aaa861a3ed700bdc5.tar.xz zsh-2f90974c38247cfcbcea034aaa861a3ed700bdc5.zip |
small fix for _requested to be able to use _all_labels from within it (10910)
Diffstat (limited to 'Completion/Core/_all_labels')
-rw-r--r-- | Completion/Core/_all_labels | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Completion/Core/_all_labels b/Completion/Core/_all_labels index a03112ee4..72d9d0317 100644 --- a/Completion/Core/_all_labels +++ b/Completion/Core/_all_labels @@ -1,6 +1,11 @@ #autoload -local gopt=-J len tmp pre suf ret=1 descr spec +local gopt=-J len tmp pre suf ret=1 descr spec prev + +if [[ "$1" = - ]]; then + prev=- + shift +fi if [[ "$1" = -([12]|)[VJ] ]]; then gopt="$1" @@ -20,7 +25,7 @@ else suf=5 fi -while comptags -A "$1" curtag spec; do +while comptags "-A$prev" "$1" curtag spec; do _comp_tags="$_comp_tags $spec " if [[ "$curtag" = *:* ]]; then zformat -f descr "${curtag#*:}" "d:$3" |