Commit 78445046 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Freplace_match): Be sure not to treat non-digit like digit.

parent 42bbacdf
...@@ -1273,7 +1273,7 @@ Leaves point at end of replacement text.") ...@@ -1273,7 +1273,7 @@ Leaves point at end of replacement text.")
(Fcurrent_buffer (), (Fcurrent_buffer (),
make_number (search_regs.start[0] + offset), make_number (search_regs.start[0] + offset),
make_number (search_regs.end[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) if (search_regs.start[c - '0'] >= 1)
Finsert_buffer_substring Finsert_buffer_substring
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment