This fixes test failures in `test-overlays-in-2` and `test-remove-overlays`.
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)))
else if (node->begin == end)
{
next = node->begin;
- if ((! empty || end < Z) && beg < end)
+ if ((! empty || end < ZV) && beg < end)
break;
}
else
out->overlays = NULL;
- /* dump_field_lv_rawptr (ctx, out, buffer, &buffer->overlays,
- ?Lisp_Vectorlike?, WEIGHT_NORMAL); */
-
dump_field_lv (ctx, out, buffer, &buffer->undo_list_,
WEIGHT_STRONG);
dump_off offset = finish_dump_pvec (ctx, &out->header);