summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/compinstall8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 47b272189..88d8793ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-05 Peter Stephenson <pws@csr.com>
+
+ * 24533 (tweaked): Completion/compinstall: use _completer _ignored
+ as default to offer user if no completers are defined
+
2008-02-03 Clint Adams <clint@zsh.org>
* 24528: configure.ac, Etc/zsh-development-guide:
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.