aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-02 18:30:09 +0000
committerRichard M. Stallman1997-06-02 18:30:09 +0000
commit8d808a65ec010808dbf9695d90f5d780b5f2018a (patch)
tree7c48de5d91745cdbe7cd98e05127a55a07ebe5e2 /src
parentfba437e666dcb0812dac502759728d4e4b363989 (diff)
downloademacs-8d808a65ec010808dbf9695d90f5d780b5f2018a.tar.gz
emacs-8d808a65ec010808dbf9695d90f5d780b5f2018a.zip
(Freplace_match): If opoint is 0, that's relative to ZV.
Diffstat (limited to 'src')
-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.")
1678 newpoint = PT; 1678 newpoint = PT;
1679 1679
1680 /* Put point back where it was in the text. */ 1680 /* Put point back where it was in the text. */
1681 if (opoint < 0) 1681 if (opoint <= 0)
1682 temp_set_point (opoint + ZV, current_buffer); 1682 temp_set_point (opoint + ZV, current_buffer);
1683 else 1683 else
1684 temp_set_point (opoint, current_buffer); 1684 temp_set_point (opoint, current_buffer);