Mercurial > emacs
changeset 26301:12ddeb9a6efd
(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.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 02 Nov 1999 12:21:57 +0000 |
parents | 25356c16306f |
children | b1d4cb0eb449 |
files | src/xdisp.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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;