about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2000-06-01 20:54:59 +0000
committerWayne Davison <wayned@users.sourceforge.net>2000-06-01 20:54:59 +0000
commit6e1d59eb2b8778baba47073e4e00c59226c37d0b (patch)
treeb08259d0406ce4f039c906b940a634f06b9f1d4f
parent4fddbb8f5cabc0ae4f84dff3688485cdff5fc262 (diff)
downloadzsh-6e1d59eb2b8778baba47073e4e00c59226c37d0b.tar.gz
zsh-6e1d59eb2b8778baba47073e4e00c59226c37d0b.tar.xz
zsh-6e1d59eb2b8778baba47073e4e00c59226c37d0b.zip
Finish the job started in my last patch.
-rw-r--r--Src/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index 0f20c2b93..629de470a 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1188,7 +1188,7 @@ getindex(char **pptr, Value v)
 	    if ((com = (*s == ','))) {
 		s++;
 		len = getarg(&s, &inv, v, 1, &dummy);
-		if (len > 0) {
+		if (len >= 0) {
 		    len -= start - 1;
 		    if (len < 0)
 			len = 0;