From: Gerd Moellmann Date: Wed, 6 Dec 2000 15:46:27 +0000 (+0000) Subject: (adjust_glyph_matrix): Don't reuse a window's current X-Git-Tag: emacs-pretest-21.0.93~158 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d1c98adf1586e3974d643509f8966081a7282ae4;p=emacs.git (adjust_glyph_matrix): Don't reuse a window's current matrix if the window's left position has changed; we need to redraw it in this case. --- diff --git a/src/dispnew.c b/src/dispnew.c index f16933b69b3..30db7dda298 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -550,6 +550,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim) if (!marginal_areas_changed_p && !fonts_changed_p && !header_line_changed_p + && matrix->window_left_x == XFASTINT (w->left) && matrix->window_top_y == XFASTINT (w->top) && matrix->window_height == window_height && matrix->window_vscroll == w->vscroll @@ -686,6 +687,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim) upper window). Invalidate all rows that are no longer part of the window. */ if (!marginal_areas_changed_p + && matrix->window_left_x == XFASTINT (w->left) && matrix->window_top_y == XFASTINT (w->top) && matrix->window_width == window_box_width (w, -1)) { @@ -721,6 +723,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim) was last adjusted. This is used to optimize redisplay above. */ if (w) { + matrix->window_left_x = XFASTINT (w->left); matrix->window_top_y = XFASTINT (w->top); matrix->window_height = window_height; matrix->window_width = window_width;