aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1bb2af98e75..2b1997fc8be 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2933,7 +2933,7 @@ overlays_in (ptrdiff_t beg, ptrdiff_t end, bool extend,
2933 2933
2934 buffer_overlay_iter_start (current_buffer, beg, 2934 buffer_overlay_iter_start (current_buffer, beg,
2935 /* Find empty OV at Z ? */ 2935 /* Find empty OV at Z ? */
2936 (end >= Z && empty) ? Z + 1 : ZV, 2936 (end >= ZV && empty) ? ZV + 1 : ZV,
2937 ITREE_ASCENDING); 2937 ITREE_ASCENDING);
2938 2938
2939 while ((node = buffer_overlay_iter_next (current_buffer))) 2939 while ((node = buffer_overlay_iter_next (current_buffer)))
@@ -2946,7 +2946,7 @@ overlays_in (ptrdiff_t beg, ptrdiff_t end, bool extend,
2946 else if (node->begin == end) 2946 else if (node->begin == end)
2947 { 2947 {
2948 next = node->begin; 2948 next = node->begin;
2949 if ((! empty || end < Z) && beg < end) 2949 if ((! empty || end < ZV) && beg < end)
2950 break; 2950 break;
2951 } 2951 }
2952 2952