diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-01 15:29:41 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-01 15:29:41 +0000 |
commit | f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca (patch) | |
tree | c2a3b06a34243abe3826eead259bb08900f011f1 /Completion/Core/_tags | |
parent | 26cf7b8d50f1b7d9d0b9115018ef4dc8624b5030 (diff) | |
download | zsh-f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca.tar.gz zsh-f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca.tar.xz zsh-f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca.zip |
zsh-workers/8840
Diffstat (limited to 'Completion/Core/_tags')
-rw-r--r-- | Completion/Core/_tags | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Completion/Core/_tags b/Completion/Core/_tags index 5294ab3c7..5519cc6cf 100644 --- a/Completion/Core/_tags +++ b/Completion/Core/_tags @@ -4,7 +4,7 @@ if (( $# )); then # We have arguments: the tags supported in this context. - local curcontext="$curcontext" + local curcontext="$curcontext" order if [[ "$1" = -C?* ]]; then curcontext="${curcontext}:${1[3,-1]}" @@ -18,6 +18,20 @@ if (( $# )); then [[ "$1" = -(|-) ]] && shift + + if _style -a '' group-order order; then + local name + + for name in "$order[@]"; do + compadd -J "$name" + compadd -V "$name" + compadd -J "$name" -1 + compadd -V "$name" -1 + compadd -J "$name" -2 + compadd -V "$name" -2 + done + fi + # Set and remember offered tags. comptags -i "$curcontext" "$@" |