summaryrefslogtreecommitdiff
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-11-02 12:22:54 +0000
committerGerd Moellmann <gerd@gnu.org>1999-11-02 12:22:54 +0000
commit1b335865a40d3227b33d15aeeb67366561b8dc23 (patch)
tree729402b5f8ef26ae8227f154cf31b98aa2123f21 /src/xdisp.c
parent9a9dfda89626c95ef44346f5516ada32cd42abba (diff)
downloademacs-1b335865a40d3227b33d15aeeb67366561b8dc23.tar.gz
(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.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c10
1 files changed, 5 insertions, 5 deletions
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;