]> git.eshelyaron.com Git - emacs.git/commitdiff
(Freplace_match): Fix check for valid reg in string replace.
authorKarl Heuer <kwzh@gnu.org>
Fri, 9 Jun 1995 01:07:18 +0000 (01:07 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 9 Jun 1995 01:07:18 +0000 (01:07 +0000)
src/search.c

index c7b9be1b41bd027f6b3ff6eafc874016b8f832c6..4fdbf8c7f0defca60563530947c18b74ef572e1d 100644 (file)
@@ -1663,7 +1663,7 @@ which is made by replacing the part of STRING that was matched.")
                    }
                  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'];