From aa99b19c088324b17c0c5e1caee4fc3b5777deab Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 26 Apr 2001 12:13:36 +0000 Subject: 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) --- Src/Zle/computil.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Src') 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 ? -- cgit 1.4.1