From: Richard M. Stallman Date: Mon, 2 Jun 1997 18:30:09 +0000 (+0000) Subject: (Freplace_match): If opoint is 0, that's relative to ZV. X-Git-Tag: emacs-20.1~1822 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8d808a65ec010808dbf9695d90f5d780b5f2018a;p=emacs.git (Freplace_match): If opoint is 0, that's relative to ZV. --- 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);