From d67ca6872eecae17f2a342c28b6dcb6fe2f3d6fc Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 2 May 2000 08:56:28 +0000 Subject: fix for _arguments, use on-line-argument-numbers only for normal arguments, not for arguments of options (11052) --- Src/Zle/computil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/Zle/computil.c') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index f749a6099..1846bc62f 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1396,9 +1396,9 @@ ca_set_data(char *opt, Caarg arg, char **args, int single) addopt = (opt ? 0 : ca_laststate.oopt); - for (; arg && (arg->num < 0 || - (arg->min <= ca_laststate.nth + addopt && - arg->num >= ca_laststate.nth));) { + for (; arg && (opt || (arg->num < 0 || + (arg->min <= ca_laststate.nth + addopt && + arg->num >= ca_laststate.nth)));) { lopt = (arg->type == CAA_OPT); if (!opt && !lopt && oopt > 0) oopt = 0; -- cgit v1.2.3