From adf79659510ed08c78bb4ccb881a5c03ef2e6759 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 11 Oct 2000 12:19:23 +0000 Subject: add _all_matcher completer and supporting C-code for adding a special match representing all other matches; remove completions style from _expand(|_word) (12960) --- Src/Zle/complete.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src/Zle/complete.c') diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index 20da967ef..df9faed7a 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -452,6 +452,9 @@ bin_compadd(char *name, char **argv, char *ops, int func) case 'Q': dat.aflags |= CAF_QUOTE; break; + case 'C': + dat.aflags |= CAF_ALL; + break; case 'f': dat.flags |= CMF_FILE; break; @@ -604,7 +607,7 @@ bin_compadd(char *name, char **argv, char *ops, int func) ca_args: if (!*argv && !dat.group && !dat.mesg && - !(dat.aflags & (CAF_NOSORT|CAF_UNIQALL|CAF_UNIQCON))) + !(dat.aflags & (CAF_NOSORT|CAF_UNIQALL|CAF_UNIQCON|CAF_ALL))) return 1; dat.match = match = cpcmatcher(match); -- cgit 1.4.1