about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
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.