1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 05:24:23 +01:00

don't report _arguments-specs more than once (not even shared options with multiple sets) (16417)

This commit is contained in:
Sven Wischnowsky 2002-01-08 15:29:46 +00:00
parent ba968d10de
commit 2ed74b89ea
2 changed files with 13 additions and 1 deletions

@ -1,3 +1,8 @@
2002-01-08 Sven Wischnowsky <wischnow@zsh.org>
* 16417: Src/Zle/computil.c: don't report _arguments-specs more
than once (not even shared options with multiple sets)
2002-01-07 Sven Wischnowsky <wischnow@zsh.org>
* 16408: Src/Zle/compcore.c: make sure auto menu isn't started

@ -2315,6 +2315,7 @@ bin_comparguments(char *nam, char **args, char *ops, int func)
LinkList direct = newlinklist();
LinkList odirect = newlinklist();
LinkList equal = newlinklist(), l;
LinkNode node;
Caopt p;
char *str;
int ret = 1;
@ -2349,7 +2350,13 @@ bin_comparguments(char *nam, char **args, char *ops, int func)
strcat(str, p->descr);
} else
str = bslashcolon(p->name);
addlinknode(l, str);
for (node = firstnode(l); node; incnode(node))
if (!strcmp(str, (char *) getdata(node)))
break;
if (!node)
addlinknode(l, str);
}
}
}