From e6cc1ece7fed93fd31ca4e7f7726de034ede887c Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 15 Feb 2000 09:07:09 +0000 Subject: zsh-workers/9731 --- Completion/Core/_tags | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'Completion/Core/_tags') diff --git a/Completion/Core/_tags b/Completion/Core/_tags index d2d5555fa..1884717e2 100644 --- a/Completion/Core/_tags +++ b/Completion/Core/_tags @@ -35,9 +35,6 @@ if (( $# )); then comptags -i "$curcontext" "$@" - _offered_tags=( "$_offered_tags[@]" "$@" ) - _last_tags=() - # Sort the tags. if [[ -n "$_sort_tags" ]]; then @@ -55,6 +52,15 @@ if (( $# )); then [[ -z "$nodef" ]] && comptry "$@" else + + # The first ones give the default behaviour. + + comptry arguments values + comptry options + comptry globbed-files + comptry directories + comptry all-files + comptry "$@" fi @@ -67,20 +73,4 @@ fi # The other mode: switch to the next set of tags. -local tags - -_failed_tags=( "$_failed_tags[@]" "$_last_tags[@]" ) - -# Return failure if no sets remaining. - -comptags -N || return 1 - -# Otherwise get the next tags. - -comptags -S _last_tags - -_tried_tags=( "$_tried_tags[@]" "$_last_tags[@]" ) - -shift 1 "$prios" - -return 0 +comptags -N -- cgit 1.4.1