Commit 1b335865 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(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.
parent 9a9dfda8
No preview for this file type
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment