diff options
| author | Michael Albinus | 2020-11-25 11:49:54 +0100 |
|---|---|---|
| committer | Michael Albinus | 2020-11-25 11:49:54 +0100 |
| commit | ba004ac7ddcb41013c823ce6d98875f7a2e69721 (patch) | |
| tree | e526f30175304fde0769f03ff4e6e9d8de39f487 /src | |
| parent | 3b740591b0a1d0e7a24be38471499ecace96936b (diff) | |
| parent | f425a774c23ef683e3c052782a497ea30c0ebd10 (diff) | |
| download | emacs-ba004ac7ddcb41013c823ce6d98875f7a2e69721.tar.gz emacs-ba004ac7ddcb41013c823ce6d98875f7a2e69721.zip | |
Merge from origin/emacs-27
f425a774c2 Fix display artifacts when 'display' properties cover newl...
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index e49cc433308..76ef420a364 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1796,6 +1796,7 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y, | |||
| 1796 | from a display vector, we need to consume all of | 1796 | from a display vector, we need to consume all of |
| 1797 | the glyphs from that display vector. */ | 1797 | the glyphs from that display vector. */ |
| 1798 | start_display (&it2, w, top); | 1798 | start_display (&it2, w, top); |
| 1799 | it2.glyph_row = NULL; | ||
| 1799 | move_it_to (&it2, charpos - 1, -1, -1, -1, MOVE_TO_POS); | 1800 | move_it_to (&it2, charpos - 1, -1, -1, -1, MOVE_TO_POS); |
| 1800 | /* If we didn't get to CHARPOS - 1, there's some | 1801 | /* If we didn't get to CHARPOS - 1, there's some |
| 1801 | replacing display property at that position, and | 1802 | replacing display property at that position, and |
| @@ -1919,6 +1920,7 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y, | |||
| 1919 | of the display line where the display string | 1920 | of the display line where the display string |
| 1920 | begins. */ | 1921 | begins. */ |
| 1921 | start_display (&it3, w, top); | 1922 | start_display (&it3, w, top); |
| 1923 | it3.glyph_row = NULL; | ||
| 1922 | move_it_to (&it3, -1, 0, top_y, -1, MOVE_TO_X | MOVE_TO_Y); | 1924 | move_it_to (&it3, -1, 0, top_y, -1, MOVE_TO_X | MOVE_TO_Y); |
| 1923 | /* If it3_moved stays false after the 'while' loop | 1925 | /* If it3_moved stays false after the 'while' loop |
| 1924 | below, that means we already were at a newline | 1926 | below, that means we already were at a newline |