aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xdisp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 7b50afa71b1..c537281fc17 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -623,6 +623,14 @@ redisplay ()
623 if (cursor_vpos >= 0 && this_line_bufpos 623 if (cursor_vpos >= 0 && this_line_bufpos
624 && this_line_endpos == tlendpos) 624 && this_line_endpos == tlendpos)
625 { 625 {
626 int left = XFASTINT (w->left);
627 int *charstart_next_line
628 = FRAME_CURRENT_GLYPHS (XFRAME (WINDOW_FRAME (w)))->charstarts[this_line_vpos + 1];
629 int adjust = Z - tlendpos + 1 - charstart_next_line[left];
630 int i;
631
632 adjust_window_charstarts (w, this_line_vpos, adjust);
633
626 if (XFASTINT (w->width) != FRAME_WIDTH (XFRAME (WINDOW_FRAME (w)))) 634 if (XFASTINT (w->width) != FRAME_WIDTH (XFRAME (WINDOW_FRAME (w))))
627 preserve_other_columns (w); 635 preserve_other_columns (w);
628 goto update; 636 goto update;