diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-06-09 01:07:18 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-06-09 01:07:18 +0000 |
commit | 94ea9610be6b72b65d08bbd11c93f21f1c442b5d (patch) | |
tree | d3be00c7bbcc44be1af3cd4f5b92448e5670f73e | |
parent | f348d96cf2ad454c169192b33590d70a76b3f1cd (diff) | |
download | emacs-94ea9610be6b72b65d08bbd11c93f21f1c442b5d.tar.gz |
(Freplace_match): Fix check for valid reg in string replace.
-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 c7b9be1b41b..4fdbf8c7f0d 100644 --- a/src/search.c +++ b/src/search.c @@ -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']; |