]> code.delx.au - gnu-emacs/commitdiff
(direct_output_for_insert): Set glyph row's
authorGerd Moellmann <gerd@gnu.org>
Thu, 25 Nov 1999 10:14:15 +0000 (10:14 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 25 Nov 1999 10:14:15 +0000 (10:14 +0000)
displays_text_p flag.  Correct window's window_end_vpos if
necessary.

src/dispnew.c

index e827b520da0e14b7753a245c41aa3e32bfdcb4a1..3d5797da6dd88ff62053e82fbe90b8d3984add4c 100644 (file)
@@ -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);