# HG changeset patch # User Gerd Moellmann # Date 978124089 0 # Node ID 2470fec0dd9252cfb66f4f6529199c2a20ac2ca1 # Parent 1a99e436d4824f42111e688428ab013def86c6e4 (try_window_reusing_current_matrix) : Disable rows in the current matrix which are below the window after scrolling. diff -r 1a99e436d482 -r 2470fec0dd92 src/xdisp.c --- a/src/xdisp.c Fri Dec 29 15:16:23 2000 +0000 +++ b/src/xdisp.c Fri Dec 29 21:08:09 2000 +0000 @@ -10185,10 +10185,10 @@ MATRIX_ROW_VPOS (bottom_row, w->current_matrix), nrows_scrolled); - /* Disable lines not reused. */ + /* Disable lines that must be updated. */ for (i = 0; i < it.vpos; ++i) (start_row + i)->enabled_p = 0; - + /* Re-compute Y positions. */ min_y = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w); max_y = it.last_visible_y; @@ -10213,6 +10213,11 @@ if (MATRIX_ROW_BOTTOM_Y (row) >= it.last_visible_y) break; } + + /* Disable lines in the current matrix which are now + below the window. */ + for (; row < bottom_row; ++row) + row->enabled_p = 0; } /* Update window_end_pos etc.; last_reused_text_row is the last