Fix typo in 'window_box_height'

* src/xdisp.c (window_box_height): Add missing 'else'.
This commit is contained in:
Martin Rudalics 2020-01-04 09:43:13 +01:00
parent e1b3fd3beb
commit 076dd1f69a

View file

@ -1136,16 +1136,17 @@ window_box_height (struct window *w)
{ {
if (w->header_line_height >= 0) if (w->header_line_height >= 0)
height -= w->header_line_height; height -= w->header_line_height;
{ else
struct glyph_row *hl_row {
= (w->current_matrix && w->current_matrix->rows struct glyph_row *hl_row
? MATRIX_HEADER_LINE_ROW (w->current_matrix) = (w->current_matrix && w->current_matrix->rows
: 0); ? MATRIX_HEADER_LINE_ROW (w->current_matrix)
if (hl_row && hl_row->mode_line_p) : 0);
height -= hl_row->height; if (hl_row && hl_row->mode_line_p)
else height -= hl_row->height;
height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID); else
} height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID);
}
} }
/* With a very small font and a mode-line that's taller than /* With a very small font and a mode-line that's taller than