summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-06-02 18:30:09 +0000
committerRichard M. Stallman <rms@gnu.org>1997-06-02 18:30:09 +0000
commit8a2637bfe5116b6c4b12293decb77613ecc4f7b3 (patch)
tree0e4770f022e61a16e8d4c6e163326003d2b61d56
parent250f04c8b6d0ab71cc6a8bf12a0d669466d7ca76 (diff)
downloademacs-8a2637bfe5116b6c4b12293decb77613ecc4f7b3.tar.gz
(Freplace_match): If opoint is 0, that's relative to ZV.
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 88d22029b4e..2678dc313ce 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1678,7 +1678,7 @@ since only regular expressions have distinguished subexpressions.")
newpoint = PT;
/* Put point back where it was in the text. */
- if (opoint < 0)
+ if (opoint <= 0)
temp_set_point (opoint + ZV, current_buffer);
else
temp_set_point (opoint, current_buffer);