]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix resizing of mini-windows by 'set-minibuffer-message'
authorEli Zaretskii <eliz@gnu.org>
Sat, 17 Dec 2022 18:43:56 +0000 (20:43 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Dec 2022 18:43:56 +0000 (20:43 +0200)
* src/xdisp.c (redisplay_window): Always resize mini-windows
displaying the active minibuffer.  (Bug#60015)

src/xdisp.c

index d14cd468191d37cfb00d81b59a217a93ee964fd3..45da4966907ac86d562f4467d2f07aacf6244989 100644 (file)
@@ -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);
     }