diff options
author | Martin Rudalics <rudalics@gmx.at> | 2020-01-04 09:43:13 +0100 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2020-01-04 09:43:13 +0100 |
commit | 076dd1f69a6306318d8d7b925210259d74854367 (patch) | |
tree | 3213da9d10fbd847508f0243e81df2f5090ee9ad /src | |
parent | e1b3fd3beb8a0a43d4c0556f6fc974e6230312d0 (diff) | |
download | emacs-076dd1f69a6306318d8d7b925210259d74854367.tar.gz |
Fix typo in 'window_box_height'
* src/xdisp.c (window_box_height): Add missing 'else'.
Diffstat (limited to 'src')
-rw-r--r-- | src/xdisp.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 4856a7b13b6..3d286cb22fb 100644 --- a/src/xdisp.c +++ b/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 |