diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-06-11 21:53:09 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-06-11 21:53:09 +0000 |
commit | 784450462fee3c4ecf4511aaf5be30d8a25899f5 (patch) | |
tree | f5d0edb483a7236ac85dcb6bf3f9e5c496e65b05 /src/search.c | |
parent | 42bbacdff775c1fab89be64bb8bc8a6e9ab1c8e8 (diff) | |
download | emacs-784450462fee3c4ecf4511aaf5be30d8a25899f5.tar.gz |
(Freplace_match): Be sure not to treat non-digit like digit.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index b0e2b1f919d..b4ef3229ac2 100644 --- a/src/search.c +++ b/src/search.c @@ -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 |