1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 18:10:56 +01:00

allow `-' in exclusion lists for _arguments, to avoid completing all options (11121)

This commit is contained in:
Sven Wischnowsky 2000-05-03 14:44:01 +00:00
parent 17e79c0157
commit aa0381bd2b
9 changed files with 44 additions and 24 deletions

View file

@ -1040,7 +1040,12 @@ ca_inactive(Cadef d, char **xor, int cur)
}
if (x[0] == ':' && !x[1])
d->argsactive = 0;
else if (x[0] == '*' && !x[1]) {
else if (x[0] == '-' && !x[1]) {
Caopt p;
for (p = d->opts; p; p = p->next)
p->active = 0;
} else if (x[0] == '*' && !x[1]) {
if (d->rest)
d->rest->active = 0;
} else if (x[0] >= '0' && x[0] <= '9') {