diff options
| author | Eli Zaretskii | 2022-12-17 20:43:56 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-12-17 20:43:56 +0200 |
| commit | c9015ef55fff36682a89c3fb16ee67d9245bea64 (patch) | |
| tree | 1a08c418dab115a2cc0ad472bf144ea139385aa3 /src | |
| parent | 5a245bc786e2c07907936ff022c675a50ed7978c (diff) | |
| download | emacs-c9015ef55fff36682a89c3fb16ee67d9245bea64.tar.gz emacs-c9015ef55fff36682a89c3fb16ee67d9245bea64.zip | |
Fix resizing of mini-windows by 'set-minibuffer-message'
* src/xdisp.c (redisplay_window): Always resize mini-windows
displaying the active minibuffer. (Bug#60015)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d14cd468191..45da4966907 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -19429,6 +19429,13 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) | |||
| 19429 | blank_row (w, row, y); | 19429 | blank_row (w, row, y); |
| 19430 | goto finish_scroll_bars; | 19430 | goto finish_scroll_bars; |
| 19431 | } | 19431 | } |
| 19432 | else if (minibuf_level >= 1) | ||
| 19433 | { | ||
| 19434 | /* We could have a message produced by set-minibuffer-message | ||
| 19435 | displayed in the mini-window as an overlay, so resize the | ||
| 19436 | mini-window if needed. */ | ||
| 19437 | resize_mini_window (w, false); | ||
| 19438 | } | ||
| 19432 | 19439 | ||
| 19433 | clear_glyph_matrix (w->desired_matrix); | 19440 | clear_glyph_matrix (w->desired_matrix); |
| 19434 | } | 19441 | } |