about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-06 07:38:36 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-06 07:38:36 +0000
commit4b56a40b6c99318ebeeab86d4c5271aa9e51bc24 (patch)
tree5d6c4143acde21fc3261e98b896a2faa7f809a95
parentab105af44a5d5de9f6ce8db793b723e26fca0a1a (diff)
downloadzsh-4b56a40b6c99318ebeeab86d4c5271aa9e51bc24.tar.gz
zsh-4b56a40b6c99318ebeeab86d4c5271aa9e51bc24.tar.xz
zsh-4b56a40b6c99318ebeeab86d4c5271aa9e51bc24.zip
(13916)
-rw-r--r--ChangeLog4
-rw-r--r--Src/params.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5286f0f4c..8e90f5b78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-06  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 13916: Src/params.c: like 13907, but for backward searches
+
 2001-04-05 Felix Rosencrantz <f_rosencrantz@yahoo.com>
 
         * workers/13914: Completion/Unix/Command/_java: Added call to
diff --git a/Src/params.c b/Src/params.c
index 215e5a6f3..2475f2861 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1118,7 +1118,7 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w)
 		    if (a2) {
 			if (down) {
 			    if (!hasbeg)
-				beg = len - 1;
+				beg = len;
 			    for (r = beg, t = d + beg; t >= d; r--, t--) {
 				sav = *t;
 				*t = '\0';
@@ -1143,7 +1143,7 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w)
 		    } else {
 			if (down) {
 			    if (!hasbeg)
-				beg = len - 1;
+				beg = len;
 			    for (r = beg + 1, t = d + beg; t >= d; r--, t--) {
 				if (pattry(pprog, t) &&
 				    !--num)