about summary refs log tree commit diff
path: root/Src/Zle/complete.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-11 12:19:23 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-11 12:19:23 +0000
commitadf79659510ed08c78bb4ccb881a5c03ef2e6759 (patch)
tree8d2388a2435c7648b253a01d130be5ce1146419c /Src/Zle/complete.c
parent5d8adbee0753795e7903b40847e17c879766dbf7 (diff)
downloadzsh-adf79659510ed08c78bb4ccb881a5c03ef2e6759.tar.gz
zsh-adf79659510ed08c78bb4ccb881a5c03ef2e6759.tar.xz
zsh-adf79659510ed08c78bb4ccb881a5c03ef2e6759.zip
add _all_matcher completer and supporting C-code for adding a special match representing all other matches; remove completions style from _expand(|_word) (12960)
Diffstat (limited to 'Src/Zle/complete.c')
-rw-r--r--Src/Zle/complete.c5
1 files changed, 4 insertions, 1 deletions
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);