diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-22 12:25:12 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-22 12:25:12 +0000 |
commit | e7a0ef2db10c24b800e8d9b0154c24f766e916d5 (patch) | |
tree | 00b0bf3b967668cc92d2fb5216891018675a7f8a /Src/Zle/computil.c | |
parent | 8c1b6f8064435404136ba182189247681f6e234a (diff) | |
download | zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar.gz zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.tar.xz zsh-e7a0ef2db10c24b800e8d9b0154c24f766e916d5.zip |
zsh-workers/8716
Diffstat (limited to 'Src/Zle/computil.c')
-rw-r--r-- | Src/Zle/computil.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 83c6b8131..cc20c8e6a 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -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) { |