diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-12-17 20:43:56 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-12-17 20:43:56 +0200 |
commit | c9015ef55fff36682a89c3fb16ee67d9245bea64 (patch) | |
tree | 1a08c418dab115a2cc0ad472bf144ea139385aa3 /src/xdisp.c | |
parent | 5a245bc786e2c07907936ff022c675a50ed7978c (diff) | |
download | emacs-c9015ef55fff36682a89c3fb16ee67d9245bea64.tar.gz emacs-c9015ef55fff36682a89c3fb16ee67d9245bea64.tar.bz2 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/xdisp.c')
-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) blank_row (w, row, y); goto finish_scroll_bars; } + else if (minibuf_level >= 1) + { + /* We could have a message produced by set-minibuffer-message + displayed in the mini-window as an overlay, so resize the + mini-window if needed. */ + resize_mini_window (w, false); + } clear_glyph_matrix (w->desired_matrix); } |