]> git.eshelyaron.com Git - emacs.git/commitdiff
(Freplace_match): Be sure not to treat non-digit like digit.
authorRichard M. Stallman <rms@gnu.org>
Sat, 11 Jun 1994 21:53:09 +0000 (21:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 11 Jun 1994 21:53:09 +0000 (21:53 +0000)
src/search.c

index b0e2b1f919d9b47d7c618cc4ca8fadf9a2816d0b..b4ef3229ac2cff252ff7d28e04911e1e86423f69 100644 (file)
@@ -1273,7 +1273,7 @@ Leaves point at end of replacement text.")
                  (Fcurrent_buffer (),
                   make_number (search_regs.start[0] + offset),
                   make_number (search_regs.end[0] + offset));
-             else if (c >= '1' && c <= search_regs.num_regs + '0')
+             else if (c >= '1' && c <= '9' && c <= search_regs.num_regs + '0')
                {
                  if (search_regs.start[c - '0'] >= 1)
                    Finsert_buffer_substring