From 8d808a65ec010808dbf9695d90f5d780b5f2018a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 2 Jun 1997 18:30:09 +0000 Subject: [PATCH] (Freplace_match): If opoint is 0, that's relative to ZV. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5