diff options
| author | Stefan Monnier | 2022-09-25 22:24:35 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2022-09-25 22:24:35 -0400 |
| commit | 1a77f09f3ceaafa81cd400fc825f16b194b627b1 (patch) | |
| tree | 36e4f9c6a0f72a18f0ec558723aee49512c92fd6 /src/buffer.c | |
| parent | 650c20f1ca4e07591a727e1cfcc74b3363d15985 (diff) | |
| download | emacs-1a77f09f3ceaafa81cd400fc825f16b194b627b1.tar.gz emacs-1a77f09f3ceaafa81cd400fc825f16b194b627b1.zip | |
* src/buffer.c (overlays_in): Fix confusion Z-vs-ZVscratch/noverlay-wip
This fixes test failures in `test-overlays-in-2` and `test-remove-overlays`.
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, | |||
| 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 | ||