about summary refs log tree commit diff
path: root/Completion/Core/_tags
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:07:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:07:09 +0000
commite6cc1ece7fed93fd31ca4e7f7726de034ede887c (patch)
tree93087d3edf5eb27836ba9bbdfb687b416fb7c629 /Completion/Core/_tags
parentbf990125d18effbf111fd6a30ff5bf90c4c263ae (diff)
downloadzsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.gz
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.xz
zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.zip
zsh-workers/9731
Diffstat (limited to 'Completion/Core/_tags')
-rw-r--r--Completion/Core/_tags30
1 files changed, 10 insertions, 20 deletions
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