about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-17 14:04:13 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-17 14:04:13 +0000
commit8ec18a622c8e865d5743ad456f1f3a7d7d6e7945 (patch)
treea5c362c7d64e1f1fecda35c771aaf3a3e2b5aac3 /Src/Zle
parent4c2807e313ea1376b10db3deb685c4eb115cbf8e (diff)
downloadzsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.tar.gz
zsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.tar.xz
zsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.zip
*** empty log message ***
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/computil.c5
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)) {