From 8ec18a622c8e865d5743ad456f1f3a7d7d6e7945 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 17 Oct 2000 14:04:13 +0000 Subject: *** empty log message *** --- Src/Zle/computil.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 4b81cbc82..3672de687 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1485,8 +1485,11 @@ ca_parse_line(Cadef d, int multi, int first) state.nargbeg = cur - 1; state.argend = argend; } - if (!d->args && !d->rest && *line && *line != '-' && *line != '+') + if (!d->args && !d->rest && *line && *line != '-' && *line != '+') { + if (!multi && cur > compcurrent) + break; return 1; + } if ((adef = state.def = ca_get_arg(d, state.nth)) && (state.def->type == CAA_RREST || state.def->type == CAA_RARGS)) { -- cgit 1.4.1