diff options
| author | Eli Zaretskii | 2020-01-03 09:28:35 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-01-03 09:28:35 +0200 |
| commit | 37f9182b68c62ee1912cf28d4ea0c30b4f8d59e0 (patch) | |
| tree | 34e6b10b93ae5cee0e68ab7bc95acec454621fcb /lisp | |
| parent | 1420906b812852fab3ee37393db813afdf9e75b7 (diff) | |
| download | emacs-37f9182b68c62ee1912cf28d4ea0c30b4f8d59e0.tar.gz emacs-37f9182b68c62ee1912cf28d4ea0c30b4f8d59e0.zip | |
Fix redisplay when mode-line-format changes mode-line's height
* lisp/frame.el (top-level): Add mode-line-format,
tab-line-format, and header-line-format to the list of variables
that should trigger an immediate redisplay of the buffer's
window. This fixes redisplay of windows when the mode line
changes its height.
* src/xdisp.c (window_box_height): Use the window's
mode_line_height, tab_line_height, and header_line_height fields
in preference to CURRENT_MODE_LINE_HEIGHT,
CURRENT_TAB_LINE_HEIGHT, and CURRENT_HEADER_LINE_HEIGHT,
respectively. This fixes display of vertical scroll bar when the
height of the window's mode line changes.
* src/dispnew.c (adjust_glyph_matrix): When resizing a window's
matrix, reset the mode_line_p flag of the previous mode-line row,
so that the window_box_height, CURRENT_MODE_LINE_HEIGHT, and their
ilk won't use stale info. (Bug#38828)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/frame.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index c533e5a23fb..16ee7580f89 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -2725,6 +2725,9 @@ See also `toggle-frame-maximized'." | |||
| 2725 | line-prefix | 2725 | line-prefix |
| 2726 | wrap-prefix | 2726 | wrap-prefix |
| 2727 | truncate-lines | 2727 | truncate-lines |
| 2728 | mode-line-format | ||
| 2729 | header-line-format | ||
| 2730 | tab-line-format | ||
| 2728 | display-line-numbers | 2731 | display-line-numbers |
| 2729 | display-line-numbers-width | 2732 | display-line-numbers-width |
| 2730 | display-line-numbers-current-absolute | 2733 | display-line-numbers-current-absolute |