changeset 7856:9687141f6264

(Freplace_match): Be sure not to treat non-digit like digit.
author Richard M. Stallman <rms@gnu.org>
date Sat, 11 Jun 1994 21:53:09 +0000
parents 69ec123ef310
children e735b56f7423
files src/search.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Sat Jun 11 20:18:46 1994 +0000
+++ b/src/search.c	Sat Jun 11 21:53:09 1994 +0000
@@ -1273,7 +1273,7 @@
 		  (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