From c9015ef55fff36682a89c3fb16ee67d9245bea64 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 17 Dec 2022 20:43:56 +0200 Subject: [PATCH] Fix resizing of mini-windows by 'set-minibuffer-message' * src/xdisp.c (redisplay_window): Always resize mini-windows displaying the active minibuffer. (Bug#60015) --- src/xdisp.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); } -- 2.39.5