summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-11-25 10:14:15 +0000
committerGerd Moellmann <gerd@gnu.org>1999-11-25 10:14:15 +0000
commit975c62260a4e3773e343f9727a95836f490765a9 (patch)
tree4efcd56379dfcec4f131fec5ff20ca2de623e507 /src/dispnew.c
parent0c8559bbd1761feef1cb076d620b1ce63b20b942 (diff)
downloademacs-975c62260a4e3773e343f9727a95836f490765a9.tar.gz
emacs-975c62260a4e3773e343f9727a95836f490765a9.tar.bz2
emacs-975c62260a4e3773e343f9727a95836f490765a9.zip
(direct_output_for_insert): Set glyph row's
displays_text_p flag. Correct window's window_end_vpos if necessary.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index e827b520da0..3d5797da6dd 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3181,6 +3181,10 @@ direct_output_for_insert (g)
glyph_row->contains_overlapping_glyphs_p
|= it.glyph_row->contains_overlapping_glyphs_p;
+ glyph_row->displays_text_p = 1;
+ w->window_end_vpos = make_number (max (w->cursor.vpos,
+ XFASTINT (w->window_end_vpos)));
+
if (!NILP (Vshow_trailing_whitespace))
highlight_trailing_whitespace (it.f, glyph_row);