1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

forgotten fix for _arguments using multiple actions (10915)

This commit is contained in:
Sven Wischnowsky 2000-04-25 11:49:10 +00:00
parent f5dcbf9f19
commit 6e99acad52
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2000-04-25 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
* 10915: Src/Zle/computil.c: forgotten fix for _arguments using
multiple actions
* 10912: Src/Zle/compresult.c: don't always ignore backslashes in
paths when testing file type

View file

@ -1399,7 +1399,7 @@ ca_set_data(char *opt, Caarg arg, char **args, int single)
for (; arg && (arg->num < 0 ||
(arg->min <= ca_laststate.nth + addopt &&
arg->num >= ca_laststate.nth));) {
if ((lopt = arg->type == CAA_OPT) && !opt && oopt > 0)
if (!opt && (lopt = arg->type != CAA_OPT) && oopt > 0)
oopt = 0;
addlinknode(descr, arg->descr);
@ -1446,7 +1446,7 @@ ca_set_data(char *opt, Caarg arg, char **args, int single)
}
}
}
if (!single && opt && lopt) {
if (!single && opt && !lopt) {
opt = NULL;
arg = ca_get_arg(ca_laststate.d, ca_laststate.nth);