changeset 12147:9200a0e153d3

(Freplace_match): Fix check for valid reg in string replace.
author Karl Heuer <kwzh@gnu.org>
date Fri, 09 Jun 1995 01:07:18 +0000
parents 3cc9c1ed504d
children a1c38b9b0f73
files src/search.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Fri Jun 09 01:05:48 1995 +0000
+++ b/src/search.c	Fri Jun 09 01:07:18 1995 +0000
@@ -1663,7 +1663,7 @@
 		    }
 		  else if (c >= '1' && c <= '9' && c <= search_regs.num_regs + '0')
 		    {
-		      if (search_regs.start[c - '0'] >= 1)
+		      if (search_regs.start[c - '0'] >= 0)
 			{
 			  substart = search_regs.start[c - '0'];
 			  subend = search_regs.end[c - '0'];