From f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 1 Dec 1999 15:29:41 +0000 Subject: zsh-workers/8840 --- Completion/Core/_tags | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Completion/Core/_tags') 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" "$@" -- cgit 1.4.1