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:
parent
17e79c0157
commit
aa0381bd2b
9 changed files with 44 additions and 24 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue