about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:07:20 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:07:20 +0000
commit505ef417354b97283d72afacd9ac4d328a0785b3 (patch)
treec1e7dbad03e752d7144cb0a3f82a1f18a185f598 /Completion/Core
parente4ca49fe01aca613209e5d25362d7e323c2eae24 (diff)
downloadzsh-505ef417354b97283d72afacd9ac4d328a0785b3.tar.gz
zsh-505ef417354b97283d72afacd9ac4d328a0785b3.tar.xz
zsh-505ef417354b97283d72afacd9ac4d328a0785b3.zip
moved to Completion/Base/Completer/_ignored
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_ignored64
1 files changed, 0 insertions, 64 deletions
diff --git a/Completion/Core/_ignored b/Completion/Core/_ignored
deleted file mode 100644
index 1ae2e2846..000000000
--- a/Completion/Core/_ignored
+++ /dev/null
@@ -1,64 +0,0 @@
-#autoload
-
-# Use ignored matches.
-
-[[ _matcher_num -gt 1 || $compstate[ignored] -eq 0 ]] && return 1
-
-local comp
-
-zstyle -a ":completion:${curcontext}:" completer comp ||
-  comp=( "${(@)_completers[1,_completer_num-1][(R)_ignored(|:*),-1]}" )
-
-local _comp_no_ignore=yes tmp expl \
-      _completer _completer_num \
-      _matcher _c_matcher _matchers _matcher_num
-
-_completer_num=1
-
-for tmp in "$comp[@]"; do
-  if [[ "$tmp" = *:-* ]]; then
-    _completer="${${tmp%:*}[2,-1]//_/-}${tmp#*:}"
-    tmp="${tmp%:*}"
-  elif [[ $tmp = *:* ]]; then
-    _completer="${tmp#*:}"
-    tmp="${tmp%:*}"
-  else
-    _completer="${tmp[2,-1]//_/-}"
-  fi
-  curcontext="${curcontext/:[^:]#:/:${_completer}:}"
-
-  zstyle -a ":completion:${curcontext}:" matcher-list _matchers ||
-      _matchers=( '' )
-
-  _matcher_num=1
-  _matcher=''
-  for _c_matcher in "$_matchers[@]"; do
-    if [[ "$_c_matcher" == +* ]]; then
-      _matcher="$_matcher $_c_matcher[2,-1]"
-    else
-      _matcher="$_c_matcher"
-    fi
-    if [[ "$tmp" != _ignored ]] && "$tmp"; then
-      if zstyle -s ":completion:${curcontext}:" single-ignored tmp &&
-         [[ $compstate[old_list] != shown &&
-            $compstate[nmatches] -eq 1 ]]; then
-        case "$tmp" in
-        show) compstate[insert]='' compstate[list]='list force' tmp='' ;;
-        menu)
-          compstate[insert]=menu
-          _description original expl original    
-          compadd "$expl[@]" -S '' - "$PREFIX$SUFFIX"
-          ;;
-        esac
-      fi
-
-      return 0
-    fi
-
-    (( _matcher_num++ ))
-  done
-
-  (( _completer_num++ ))
-done
-
-return 1