summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-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);