diff options
| author | Eli Zaretskii | 2017-02-26 17:56:13 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-02-26 17:56:13 +0200 |
| commit | 2bb467a2e2fc70d387ca9a174d5d3a1417a13008 (patch) | |
| tree | eaadf823db2a6916f3a40c4151e3f4bc5a21ce7f /src | |
| parent | 618310c22d8e26a1654e796b47cc2d248650de0d (diff) | |
| download | emacs-2bb467a2e2fc70d387ca9a174d5d3a1417a13008.tar.gz emacs-2bb467a2e2fc70d387ca9a174d5d3a1417a13008.zip | |
Fix display of before- and after-strings at invisible text
* src/xdisp.c (next_overlay_string): Don't raise the
ignore_overlay_strings_at_pos_p flag if the iterator is already
set to continue at a buffer position different from the one
where the overlay strings we just processed were loaded. (Bug#25856)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 91eef0ec475..cec649f590d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5557,9 +5557,14 @@ next_overlay_string (struct it *it) | |||
| 5557 | 5557 | ||
| 5558 | /* Since we've exhausted overlay strings at this buffer | 5558 | /* Since we've exhausted overlay strings at this buffer |
| 5559 | position, set the flag to ignore overlays until we move to | 5559 | position, set the flag to ignore overlays until we move to |
| 5560 | another position. The flag is reset in | 5560 | another position. (The flag will be reset in |
| 5561 | next_element_from_buffer. */ | 5561 | next_element_from_buffer.) But don't do that if the overlay |
| 5562 | it->ignore_overlay_strings_at_pos_p = true; | 5562 | strings were loaded at position other than the current one, |
| 5563 | which could happen if we called pop_it above, or if the | ||
| 5564 | overlay strings were loaded by handle_invisible_prop at the | ||
| 5565 | beginning of invisible text. */ | ||
| 5566 | if (it->overlay_strings_charpos == IT_CHARPOS (*it)) | ||
| 5567 | it->ignore_overlay_strings_at_pos_p = true; | ||
| 5563 | 5568 | ||
| 5564 | /* If we're at the end of the buffer, record that we have | 5569 | /* If we're at the end of the buffer, record that we have |
| 5565 | processed the overlay strings there already, so that | 5570 | processed the overlay strings there already, so that |