mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
zsh-workers/9568
This commit is contained in:
parent
3c3ffa433d
commit
2573b87620
1 changed files with 5 additions and 3 deletions
|
@ -1039,7 +1039,7 @@ ca_parse_line(Cadef d)
|
||||||
|
|
||||||
zfree(ca_laststate.oargs, ca_laststate.d->nopts * sizeof(LinkList));
|
zfree(ca_laststate.oargs, ca_laststate.d->nopts * sizeof(LinkList));
|
||||||
}
|
}
|
||||||
/* MArk everything as active. */
|
/* Mark everything as active. */
|
||||||
|
|
||||||
for (ptr = d->opts; ptr; ptr = ptr->next)
|
for (ptr = d->opts; ptr; ptr = ptr->next)
|
||||||
ptr->active = 1;
|
ptr->active = 1;
|
||||||
|
@ -1406,8 +1406,10 @@ bin_comparguments(char *nam, char **args, char *ops, int func)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
case 'O':
|
case 'O':
|
||||||
if (ca_laststate.opt || (ca_laststate.doff && ca_laststate.def) ||
|
if ((ca_laststate.opt || (ca_laststate.doff && ca_laststate.def) ||
|
||||||
(ca_laststate.def && ca_laststate.def->type == CAA_OPT)) {
|
(ca_laststate.def && ca_laststate.def->type == CAA_OPT)) &&
|
||||||
|
(!ca_laststate.def || ca_laststate.def->type < CAA_RARGS ||
|
||||||
|
compcurrent == 1)) {
|
||||||
LinkList next = newlinklist();
|
LinkList next = newlinklist();
|
||||||
LinkList direct = newlinklist();
|
LinkList direct = newlinklist();
|
||||||
LinkList odirect = newlinklist();
|
LinkList odirect = newlinklist();
|
||||||
|
|
Loading…
Reference in a new issue