From 1b335865a40d3227b33d15aeeb67366561b8dc23 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 2 Nov 1999 12:22:54 +0000 Subject: [PATCH] (display_line): Set charpos of first glyph in blank lines not corresponding to any text to -1, even if no glyphs are filled in in that line. --- src/ChangeLog | 6 ++++++ src/xdisp.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5f081f9858c..2e00d388404 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +1999-11-02 Gerd Moellmann + + * xdisp.c (display_line): Set charpos of first glyph in blank + lines not corresponding to any text to -1, even if no glyphs are + filled in in that line. + 1999-11-01 Gerd Moellmann * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using diff --git a/src/xdisp.c b/src/xdisp.c index 1c2e22e7a53..7364171f00f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -11009,12 +11009,12 @@ display_line (it) if (!get_next_display_element (it)) { /* Maybe add a space at the end of this line that is used to - display the cursor there under X. */ - if (append_space (it, 1) && row->used[TEXT_AREA] == 1) + display the cursor there under X. Set the charpos of the + first glyph of blank lines not corresponding to any text + to -1. */ + if ((append_space (it, 1) && row->used[TEXT_AREA] == 1) + || row->used[TEXT_AREA] == 0) { - /* The position -1 below indicates a blank line not - corresponding to any text, as opposed to an empty line - corresponding to a line end. */ row->glyphs[TEXT_AREA]->charpos = -1; row->displays_text_p = 0; -- 2.39.5