1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00

fix for exclusion lists for -+o specifications

This commit is contained in:
Sven Wischnowsky 2000-04-17 08:53:37 +00:00
parent 306adcc9c4
commit fcca6c721c
2 changed files with 6 additions and 3 deletions

View file

@ -4,6 +4,9 @@
2000-04-17 Sven Wischnowsky <wischnow@informatik.hu-berlin.de> 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, * 10780: Completion/Base/_default, Completion/Base/_value,
Completion/Builtins/_vars_eq, Completion/Builtins/_zstyle, Completion/Builtins/_vars_eq, Completion/Builtins/_zstyle,
Doc/Zsh/compsys.yo: better completion after `=', everywhere Doc/Zsh/compsys.yo: better completion after `=', everywhere

View file

@ -623,7 +623,7 @@ parse_cadef(char *nam, char **args)
* stuff twice for such things. */ * stuff twice for such things. */
name = ++p; name = ++p;
*p = (again ? '-' : '+'); *p = (again ? '-' : '+');
again = 1 - again; again++;
} else { } else {
name = p; name = p;
/* If it's a long option skip over the first `-'. */ /* If it's a long option skip over the first `-'. */
@ -767,7 +767,7 @@ parse_cadef(char *nam, char **args)
opt->descr = NULL; opt->descr = NULL;
} else } else
opt->descr = NULL; opt->descr = NULL;
opt->xor = xor; opt->xor = (again == 1 ? zarrdup(xor) : xor);
opt->type = otype; opt->type = otype;
opt->args = oargs; opt->args = oargs;
opt->num = nopts++; opt->num = nopts++;
@ -783,7 +783,7 @@ parse_cadef(char *nam, char **args)
if (single && name[1] && !name[2]) if (single && name[1] && !name[2])
ret->single[STOUC(name[1])] = opt; ret->single[STOUC(name[1])] = opt;
if (again) { if (again == 1) {
/* Do it all again for `*-...'. */ /* Do it all again for `*-...'. */
p = dupstring(*args); p = dupstring(*args);
goto rec; goto rec;