about summary refs log tree commit diff
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
parent4c2807e313ea1376b10db3deb685c4eb115cbf8e (diff)
downloadzsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.tar.gz
zsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.tar.xz
zsh-8ec18a622c8e865d5743ad456f1f3a7d7d6e7945.zip
*** empty log message ***
-rw-r--r--ChangeLog7
-rw-r--r--Src/Zle/computil.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6412fa996..5a6934691 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-17  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 13005: Src/Zle/computil.c: make _arguments ignore unspecified
+ 	non-option arguments to the right of the cursor
+	
 2000-10-17  Peter Stephenson  <pws@csr.com>
 
 	* Config/version.mk, Functions/Zle/.distfiles,
@@ -8,7 +13,7 @@
 	
 2000-10-16  Sven Wischnowsky  <wischnow@zsh.org>
 
-	* ?????: Test/54compmatch.ztst: add tests for the stuff in 12995
+	* 13003: Test/54compmatch.ztst: add tests for the stuff in 12995
 	
 2000-10-13  Bart Schaefer  <schaefer@zsh.org>
 
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)) {