mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 20:40:57 +02:00
fix for _arguments, use on-line-argument-numbers only for normal arguments, not for arguments of options (11052)
This commit is contained in:
parent
753cc6b22a
commit
d67ca6872e
2 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
|||
2000-05-02 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||
|
||||
* 11052: Src/Zle/computil.c: fix for _arguments, use
|
||||
on-line-argument-numbers only for normal arguments, not for
|
||||
arguments of options
|
||||
|
||||
* 11049: Completion/Base/_arguments, Completion/Base/_first,
|
||||
Completion/Builtins/_hash, Completion/Core/_expand,
|
||||
Completion/User/_gprof, Completion/User/_mount,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue