diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-17 14:04:13 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-17 14:04:13 +0000 |
commit | 8ec18a622c8e865d5743ad456f1f3a7d7d6e7945 (patch) | |
tree | a5c362c7d64e1f1fecda35c771aaf3a3e2b5aac3 /Src/Zle | |
parent | 4c2807e313ea1376b10db3deb685c4eb115cbf8e (diff) | |
download | zsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.tar.gz zsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.tar.xz zsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.zip |
*** empty log message ***
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/computil.c | 5 |
1 files changed, 4 insertions, 1 deletions
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)) { |