From 617e790830abeaaaa3e6d4302371849a794eda45 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 5 Feb 2008 14:51:01 +0000 Subject: 24533 (tweaked): offer _complete _ignored as default for completers style --- Completion/compinstall | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Completion/compinstall') 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. -- cgit 1.4.1