mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
fix for exclusion lists for -+o specifications
This commit is contained in:
parent
306adcc9c4
commit
fcca6c721c
2 changed files with 6 additions and 3 deletions
|
@ -4,6 +4,9 @@
|
|||
|
||||
2000-04-17 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||
|
||||
* 10782: Src/Zle/computil.c: fix for exclusion lists for -+o
|
||||
specifications
|
||||
|
||||
* 10780: Completion/Base/_default, Completion/Base/_value,
|
||||
Completion/Builtins/_vars_eq, Completion/Builtins/_zstyle,
|
||||
Doc/Zsh/compsys.yo: better completion after `=', everywhere
|
||||
|
|
|
@ -623,7 +623,7 @@ parse_cadef(char *nam, char **args)
|
|||
* stuff twice for such things. */
|
||||
name = ++p;
|
||||
*p = (again ? '-' : '+');
|
||||
again = 1 - again;
|
||||
again++;
|
||||
} else {
|
||||
name = p;
|
||||
/* If it's a long option skip over the first `-'. */
|
||||
|
@ -767,7 +767,7 @@ parse_cadef(char *nam, char **args)
|
|||
opt->descr = NULL;
|
||||
} else
|
||||
opt->descr = NULL;
|
||||
opt->xor = xor;
|
||||
opt->xor = (again == 1 ? zarrdup(xor) : xor);
|
||||
opt->type = otype;
|
||||
opt->args = oargs;
|
||||
opt->num = nopts++;
|
||||
|
@ -783,7 +783,7 @@ parse_cadef(char *nam, char **args)
|
|||
if (single && name[1] && !name[2])
|
||||
ret->single[STOUC(name[1])] = opt;
|
||||
|
||||
if (again) {
|
||||
if (again == 1) {
|
||||
/* Do it all again for `*-...'. */
|
||||
p = dupstring(*args);
|
||||
goto rec;
|
||||
|
|
Loading…
Reference in a new issue