1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

24533 (tweaked): offer _complete _ignored as default for completers style

This commit is contained in:
Peter Stephenson 2008-02-05 14:51:01 +00:00
parent d70c7f5f53
commit 617e790830
2 changed files with 11 additions and 2 deletions

View file

@ -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:

View file

@ -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.