diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-09-28 11:57:16 -0400 |
|---|---|---|
| committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-09-28 11:57:16 -0400 |
| commit | 800ecd4767df48beeefabccdacd089b8c4286529 (patch) | |
| tree | 7bfc9e2d0a88c7d8ec580cf6b205ed29d43de768 /src/buffer.c | |
| parent | 17ba7ac5d9295d39ec3b97712d061b3c7866a093 (diff) | |
| parent | 1a77f09f3ceaafa81cd400fc825f16b194b627b1 (diff) | |
Merge remote-tracking branch 'origin/scratch/noverlay-wip' into noverlay
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
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, buffer_overlay_iter_start (current_buffer, beg, /* Find empty OV at Z ? */ - (end >= Z && empty) ? Z + 1 : ZV, + (end >= ZV && empty) ? ZV + 1 : ZV, ITREE_ASCENDING); while ((node = buffer_overlay_iter_next (current_buffer))) @@ -2946,7 +2946,7 @@ overlays_in (ptrdiff_t beg, ptrdiff_t end, bool extend, else if (node->begin == end) { next = node->begin; - if ((! empty || end < Z) && beg < end) + if ((! empty || end < ZV) && beg < end) break; } |
