mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-07 06:02:21 +01:00
zsh-workers/8716
This commit is contained in:
parent
8c1b6f8064
commit
e7a0ef2db1
2 changed files with 15 additions and 6 deletions
|
|
@ -2730,8 +2730,16 @@ bin_comptry(char *nam, char **args, char *ops, int func)
|
|||
args = arrdup(args);
|
||||
|
||||
for (p = q = args, all = comptags[lasttaglevel]->all; *p; p++)
|
||||
if (arrcontains(all, *p))
|
||||
*q++ = *p;
|
||||
if (arrcontains(all, *p)) {
|
||||
Ctset s;
|
||||
|
||||
for (s = comptags[lasttaglevel]->sets; s; s = s->next)
|
||||
if (arrcontains(s->tags, *p))
|
||||
break;
|
||||
|
||||
if (!s)
|
||||
*q++ = *p;
|
||||
}
|
||||
*q = NULL;
|
||||
|
||||
if (*args) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue