about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:24:25 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:24:25 +0000
commit0eca06e0c50301f80dca1176f1338e283f71a98a (patch)
tree19ee9fe90b3284c5f05f8667dc57a2c2c002279c /Completion
parent23ac19eeb9805a26a7784af1e4d18db456b890ca (diff)
downloadzsh-0eca06e0c50301f80dca1176f1338e283f71a98a.tar.gz
zsh-0eca06e0c50301f80dca1176f1338e283f71a98a.tar.xz
zsh-0eca06e0c50301f80dca1176f1338e283f71a98a.zip
moved to Completion/Zsh/Context/_subscript
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/_subscript62
1 files changed, 0 insertions, 62 deletions
diff --git a/Completion/Base/_subscript b/Completion/Base/_subscript
deleted file mode 100644
index 95e7cc4c6..000000000
--- a/Completion/Base/_subscript
+++ /dev/null
@@ -1,62 +0,0 @@
-#compdef -subscript-
-
-local expl ind osuf=']'
-
-if [[ "$1" = -q ]]; then
-  osuf='] '
-  compquote osuf
-  shift
-fi
-
-if [[ "$PREFIX" = :* ]]; then
-  _wanted characters expl 'character class' \
-      compadd -p: -S ':]' alnum alpha blank cntrl digit graph \
-                          lower print punct space upper xdigit
-elif [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then
-  local suf
-
-  [[ "$RBUFFER" != (|\\)\]* ]] && suf="$osuf"
-
-  _wanted association-keys expl 'association key' \
-      compadd -S "$suf" -k "$compstate[parameter]"
-elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
-  local list i j ret=1 disp
-
-  _tags indexes parameters
-
-  while _tags; do
-    if _requested indexes; then
-      ind=( {1..${#${(P)${compstate[parameter]}}}} )
-      if zstyle -T ":completion:${curcontext}:indexes" verbose; then
-        list=()
-        for i in "$ind[@]"; do
-          if [[ "$i" = ${PREFIX}*${SUFFIX} ]]; then
-              list=( "$list[@]" 
-	             "${i}:$(print -D ${(P)${compstate[parameter]}[$i]})" )
-	  else
-	      list=( "$list[@]" '' )
-	  fi
-        done
-        zformat -a list ' -- ' "$list[@]"
-	disp=( -d list)
-      else
-        disp=()
-      fi
-
-      if [[ "$RBUFFER" = (|\\)\]* ]]; then
-        _all_labels -V indexes expl 'array index' \
-            compadd -S '' "$disp[@]" -a ind && ret=0
-      else
-        _all_labels -V indexes expl 'array index' \
-            compadd -S "$osuf" "$disp[@]" -a ind && ret=0
-      fi
-    fi
-    _requested parameters && _parameters && ret=0
-
-    (( ret )) || return 0
-  done
-
-  return 1
-else
-  _compalso -math-
-fi