changeset 6619:b3631c88ec7e

(redisplay): Call adjust_window_charstarts to update the charstarts of following lines.
author Richard M. Stallman <rms@gnu.org>
date Fri, 01 Apr 1994 02:09:44 +0000
parents 8d8033687586
children 990d7d5095dc
files src/xdisp.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Mar 31 23:40:14 1994 +0000
+++ b/src/xdisp.c	Fri Apr 01 02:09:44 1994 +0000
@@ -623,6 +623,14 @@
 	  if (cursor_vpos >= 0 && this_line_bufpos
 	      && this_line_endpos == tlendpos)
 	    {
+	      int left = XFASTINT (w->left);
+	      int *charstart_next_line
+		= FRAME_CURRENT_GLYPHS (XFRAME (WINDOW_FRAME (w)))->charstarts[this_line_vpos + 1];
+	      int adjust = Z - tlendpos + 1 - charstart_next_line[left];
+	      int i;
+
+	      adjust_window_charstarts (w, this_line_vpos, adjust);
+
 	      if (XFASTINT (w->width) != FRAME_WIDTH (XFRAME (WINDOW_FRAME (w))))
 		preserve_other_columns (w);
 	      goto update;