]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay): Call adjust_window_charstarts
authorRichard M. Stallman <rms@gnu.org>
Fri, 1 Apr 1994 02:09:44 +0000 (02:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 1 Apr 1994 02:09:44 +0000 (02:09 +0000)
to update the charstarts of following lines.

src/xdisp.c

index 7b50afa71b12ff9efe7fa8fc6f2ad1509751ec9c..c537281fc1727d4770c65e5c5674dca8c099bebc 100644 (file)
@@ -623,6 +623,14 @@ redisplay ()
          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;