Fix typo in 'window_box_height'
* src/xdisp.c (window_box_height): Add missing 'else'.
This commit is contained in:
parent
e1b3fd3beb
commit
076dd1f69a
1 changed files with 11 additions and 10 deletions
21
src/xdisp.c
21
src/xdisp.c
|
@ -1136,16 +1136,17 @@ window_box_height (struct window *w)
|
|||
{
|
||||
if (w->header_line_height >= 0)
|
||||
height -= w->header_line_height;
|
||||
{
|
||||
struct glyph_row *hl_row
|
||||
= (w->current_matrix && w->current_matrix->rows
|
||||
? MATRIX_HEADER_LINE_ROW (w->current_matrix)
|
||||
: 0);
|
||||
if (hl_row && hl_row->mode_line_p)
|
||||
height -= hl_row->height;
|
||||
else
|
||||
height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID);
|
||||
}
|
||||
else
|
||||
{
|
||||
struct glyph_row *hl_row
|
||||
= (w->current_matrix && w->current_matrix->rows
|
||||
? MATRIX_HEADER_LINE_ROW (w->current_matrix)
|
||||
: 0);
|
||||
if (hl_row && hl_row->mode_line_p)
|
||||
height -= hl_row->height;
|
||||
else
|
||||
height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID);
|
||||
}
|
||||
}
|
||||
|
||||
/* With a very small font and a mode-line that's taller than
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue