]> git.eshelyaron.com Git - emacs.git/commitdiff
(Freplace_match): If opoint is 0, that's relative to ZV.
authorRichard M. Stallman <rms@gnu.org>
Mon, 2 Jun 1997 18:30:09 +0000 (18:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 2 Jun 1997 18:30:09 +0000 (18:30 +0000)
src/search.c

index 88d22029b4eaa0bc92619ce1c41193d369631efb..2678dc313ce8354ee63b907021339dfbbd94cef0 100644 (file)
@@ -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);