# HG changeset patch # User Gerd Moellmann # Date 941545317 0 # Node ID 12ddeb9a6efd56e5f25b7c87b06317ddff11ae0d # Parent 25356c16306f05d931b7196134092d904abe83f3 (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. diff -r 25356c16306f -r 12ddeb9a6efd src/xdisp.c --- a/src/xdisp.c Tue Nov 02 12:09:34 1999 +0000 +++ b/src/xdisp.c Tue Nov 02 12:21:57 1999 +0000 @@ -11009,12 +11009,12 @@ 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) - { - /* The position -1 below indicates a blank line not - corresponding to any text, as opposed to an empty line - corresponding to a line end. */ + 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) + { row->glyphs[TEXT_AREA]->charpos = -1; row->displays_text_p = 0;