about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)) {