diff options
| author | Eli Zaretskii | 2023-04-30 16:24:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-04-30 16:24:05 +0300 |
| commit | ca43435816b7c7ceaef1a6fce967cbdbcf243ea3 (patch) | |
| tree | d98ef8789e2cb588439f5c93b255e52d03453c40 | |
| parent | 610a7657e0aeaaf6299de76f13a6dc6e4af7db96 (diff) | |
| download | emacs-ca43435816b7c7ceaef1a6fce967cbdbcf243ea3.tar.gz emacs-ca43435816b7c7ceaef1a6fce967cbdbcf243ea3.zip | |
Fix redisplay of mode line after its format changes from nil
* src/dispnew.c (update_window): Make sure a mode-line's row of
the current glyph matrix is disabled when the mode line is not
being displayed. (Bug#63186)
| -rw-r--r-- | src/dispnew.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 87ec83acdf3..65d9cf9b4e1 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -3748,6 +3748,14 @@ update_window (struct window *w, bool force_p) | |||
| 3748 | } | 3748 | } |
| 3749 | } | 3749 | } |
| 3750 | 3750 | ||
| 3751 | /* If the window doesn't display its mode line, make sure the | ||
| 3752 | corresponding row of the current glyph matrix is disabled, so | ||
| 3753 | that if and when the mode line is displayed again, it will be | ||
| 3754 | cleared and completely redrawn. */ | ||
| 3755 | if (!window_wants_mode_line (w)) | ||
| 3756 | SET_MATRIX_ROW_ENABLED_P (w->current_matrix, | ||
| 3757 | w->current_matrix->nrows - 1, false); | ||
| 3758 | |||
| 3751 | /* Was display preempted? */ | 3759 | /* Was display preempted? */ |
| 3752 | paused_p = row < end; | 3760 | paused_p = row < end; |
| 3753 | 3761 | ||