about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-02-05 14:51:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-02-05 14:51:01 +0000
commit617e790830abeaaaa3e6d4302371849a794eda45 (patch)
tree92b992ad479e279b81bb5c04e8ff3d275713cc57 /Completion
parentd70c7f5f53c2d3fa910c0965c39a651186cb8649 (diff)
downloadzsh-617e790830abeaaaa3e6d4302371849a794eda45.tar.gz
zsh-617e790830abeaaaa3e6d4302371849a794eda45.tar.xz
zsh-617e790830abeaaaa3e6d4302371849a794eda45.zip
24533 (tweaked): offer _complete _ignored as default for completers style
Diffstat (limited to 'Completion')
-rw-r--r--Completion/compinstall8
1 files changed, 6 insertions, 2 deletions
diff --git a/Completion/compinstall b/Completion/compinstall
index 802860410..d4562d739 100644
--- a/Completion/compinstall
+++ b/Completion/compinstall
@@ -506,7 +506,7 @@ s.    Specify a list of completers.
 		      ;;
 		[sS]) olist=
 		      tmparr=(_complete _approximate _correct _match _expand)
-		      while true; do 
+		      while true; do
 			clear
 			print "\
      *** compinstall:  choosing completers to have _oldlist behaviour ***
@@ -839,7 +839,11 @@ __ci_do_completers() {
   for c in ${=newc}; do
     completers[$c]=1
   done
-  clist=(_list _oldlist _menu _expand _complete _ignored 
+  if (( ${#completers} == 0 )); then
+    completers[_complete]=1
+    completers[_ignored]=1
+  fi
+  clist=(_list _oldlist _menu _expand _complete _ignored
          _match _correct _approximate _prefix)
 
   # TODO: these are a bit brief, so could provide some more detailed help.