aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispnew.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 7e89a855bbb..4cf131522ec 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -456,8 +456,10 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y
456 || (row == matrix->rows + dim.height - 1 456 || (row == matrix->rows + dim.height - 1
457 && window_wants_mode_line (w)) 457 && window_wants_mode_line (w))
458 || (row == matrix->rows && matrix->tab_line_p) 458 || (row == matrix->rows && matrix->tab_line_p)
459 || (row == matrix->rows && !matrix->tab_line_p && matrix->header_line_p) 459 || (row == matrix->rows
460 || (row == (matrix->rows + 1) && matrix->tab_line_p && matrix->header_line_p)) 460 && !matrix->tab_line_p && matrix->header_line_p)
461 || (row == (matrix->rows + 1)
462 && matrix->tab_line_p && matrix->header_line_p))
461 { 463 {
462 row->glyphs[TEXT_AREA] 464 row->glyphs[TEXT_AREA]
463 = row->glyphs[LEFT_MARGIN_AREA]; 465 = row->glyphs[LEFT_MARGIN_AREA];
@@ -504,8 +506,10 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y
504 if ((row == matrix->rows + dim.height - 1 506 if ((row == matrix->rows + dim.height - 1
505 && !(w && window_wants_mode_line (w))) 507 && !(w && window_wants_mode_line (w)))
506 || (row == matrix->rows && matrix->tab_line_p) 508 || (row == matrix->rows && matrix->tab_line_p)
507 || (row == matrix->rows && !matrix->tab_line_p && matrix->header_line_p) 509 || (row == matrix->rows
508 || (row == (matrix->rows + 1) && matrix->tab_line_p && matrix->header_line_p)) 510 && !matrix->tab_line_p && matrix->header_line_p)
511 || (row == (matrix->rows + 1)
512 && matrix->tab_line_p && matrix->header_line_p))
509 { 513 {
510 row->glyphs[TEXT_AREA] 514 row->glyphs[TEXT_AREA]
511 = row->glyphs[LEFT_MARGIN_AREA]; 515 = row->glyphs[LEFT_MARGIN_AREA];
@@ -3550,7 +3554,8 @@ update_window (struct window *w, bool force_p)
3550 /* Try reusing part of the display by copying. */ 3554 /* Try reusing part of the display by copying. */
3551 if (row < end && !desired_matrix->no_scrolling_p) 3555 if (row < end && !desired_matrix->no_scrolling_p)
3552 { 3556 {
3553 int rc = scrolling_window (w, (tab_line_row != NULL ? 1 : 0) + (header_line_row != NULL ? 1 : 0)); 3557 int rc = scrolling_window (w, (tab_line_row != NULL ? 1 : 0)
3558 + (header_line_row != NULL ? 1 : 0));
3554 if (rc < 0) 3559 if (rc < 0)
3555 { 3560 {
3556 /* All rows were found to be equal. */ 3561 /* All rows were found to be equal. */
@@ -5428,7 +5433,8 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p
5428 start position, i.e. it excludes the header-line row, but 5433 start position, i.e. it excludes the header-line row, but
5429 MATRIX_ROW includes the header-line row. Adjust for a possible 5434 MATRIX_ROW includes the header-line row. Adjust for a possible
5430 header-line row. */ 5435 header-line row. */
5431 it_vpos = it.vpos + window_wants_header_line (w) + window_wants_tab_line (w); 5436 it_vpos = it.vpos + window_wants_header_line (w)
5437 + window_wants_tab_line (w);
5432 if (it_vpos < w->current_matrix->nrows 5438 if (it_vpos < w->current_matrix->nrows
5433 && (row = MATRIX_ROW (w->current_matrix, it_vpos), 5439 && (row = MATRIX_ROW (w->current_matrix, it_vpos),
5434 row->enabled_p)) 5440 row->enabled_p))
@@ -5675,7 +5681,8 @@ handle_window_change_signal (int sig)
5675 structures now. Let that be done later outside of the 5681 structures now. Let that be done later outside of the
5676 signal handler. */ 5682 signal handler. */
5677 change_frame_size (XFRAME (frame), width, 5683 change_frame_size (XFRAME (frame), width,
5678 height - FRAME_MENU_BAR_LINES (XFRAME (frame)) - FRAME_TAB_BAR_LINES (XFRAME (frame)), 5684 height - FRAME_MENU_BAR_LINES (XFRAME (frame))
5685 - FRAME_TAB_BAR_LINES (XFRAME (frame)),
5679 0, 1, 0, 0); 5686 0, 1, 0, 0);
5680 } 5687 }
5681 } 5688 }
@@ -6355,7 +6362,8 @@ init_display_interactive (void)
6355 change_frame_size (XFRAME (selected_frame), 6362 change_frame_size (XFRAME (selected_frame),
6356 FrameCols (t->display_info.tty), 6363 FrameCols (t->display_info.tty),
6357 FrameRows (t->display_info.tty) 6364 FrameRows (t->display_info.tty)
6358 - FRAME_MENU_BAR_LINES (f) - FRAME_TAB_BAR_LINES (f), 0, 0, 1, 0); 6365 - FRAME_MENU_BAR_LINES (f)
6366 - FRAME_TAB_BAR_LINES (f), 0, 0, 1, 0);
6359 6367
6360 /* Delete the initial terminal. */ 6368 /* Delete the initial terminal. */
6361 if (--initial_terminal->reference_count == 0 6369 if (--initial_terminal->reference_count == 0