about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-26 12:13:36 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-26 12:13:36 +0000
commitaa99b19c088324b17c0c5e1caee4fc3b5777deab (patch)
tree6489214ac325f9b473c254fb8f8c545b3255855d /Src/Zle
parent105009726b3276a16ad39930aba046032597a039 (diff)
downloadzsh-aa99b19c088324b17c0c5e1caee4fc3b5777deab.tar.gz
zsh-aa99b19c088324b17c0c5e1caee4fc3b5777deab.tar.xz
zsh-aa99b19c088324b17c0c5e1caee4fc3b5777deab.zip
rename -W option to -w, add new -W option which makes _arguments complete options even after options that get their argument in the same word; new _guard function for conditionally displaying messages (14105)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/computil.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index e927081f7..29ea5a298 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1941,7 +1941,12 @@ bin_comparguments(char *nam, char **args, char *ops, int func)
     case 's':
 	for (; lstate; lstate = lstate->snext)
 	    if (lstate->d->single && lstate->singles &&
-		lstate->actopts && lstate->opt) {
+		lstate->actopts
+#if 0
+                /* let's try without, for the -W option of _arguments */
+                && lstate->opt
+#endif
+                ) {
 		setsparam(args[1],
 			  ztrdup((lstate->ddef && lstate->dopt) ?
 				 (lstate->dopt->type == CAO_DIRECT ?