aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 8abf5782a88..385ad98e21f 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3578,12 +3578,11 @@ update_window (struct window *w, int force_p)
3578 3578
3579 rif->update_window_begin_hook (w); 3579 rif->update_window_begin_hook (w);
3580 yb = window_text_bottom_y (w); 3580 yb = window_text_bottom_y (w);
3581
3582 /* If window has a header line, update it before everything else.
3583 Adjust y-positions of other rows by the header line height. */
3584 row = desired_matrix->rows; 3581 row = desired_matrix->rows;
3585 end = row + desired_matrix->nrows - 1; 3582 end = row + desired_matrix->nrows - 1;
3586 3583
3584 /* Take note of the header line, if there is one. We will
3585 update it below, after updating all of the window's lines. */
3587 if (row->mode_line_p) 3586 if (row->mode_line_p)
3588 { 3587 {
3589 header_line_row = row; 3588 header_line_row = row;
@@ -3628,6 +3627,8 @@ update_window (struct window *w, int force_p)
3628 3627
3629 /* Update the rest of the lines. */ 3628 /* Update the rest of the lines. */
3630 for (; row < end && (force_p || !input_pending); ++row) 3629 for (; row < end && (force_p || !input_pending); ++row)
3630 /* scrolling_window resets the enabled_p flag of the rows it
3631 reuses from current_matrix. */
3631 if (row->enabled_p) 3632 if (row->enabled_p)
3632 { 3633 {
3633 int vpos = MATRIX_ROW_VPOS (row, desired_matrix); 3634 int vpos = MATRIX_ROW_VPOS (row, desired_matrix);