aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorGlenn Morris2019-12-30 09:12:25 -0800
committerGlenn Morris2019-12-30 09:12:25 -0800
commit90083b7d78df1b8a054f3028cc9eb8c55a632b1e (patch)
tree458355c729fe23f2f3ca5788fc374e36c9935116 /src/window.c
parent00c9308ae86dbc2ace7e0154586be84f17036a2b (diff)
parent59f71d20eade09e6c2ef99fc4d9b99a161bff040 (diff)
downloademacs-90083b7d78df1b8a054f3028cc9eb8c55a632b1e.tar.gz
emacs-90083b7d78df1b8a054f3028cc9eb8c55a632b1e.zip
Merge from origin/emacs-27
59f71d20ea (origin/emacs-27) Fix tar-mode reading the oldgnu Tar format e3ec84fd7d Ensure mini-window is resized to show active minibuffer co... 450633f85a Fix mini-window resizing under resize-mini-windows = t 219d47893a (emacs-27) Fixes for makeinfo 4.13 4bbfd2b42f ; fix previous NEWS entry 81b697d106 Fix crash under -nw on macOS properly this time 9ce4207969 Revert "Check for GUI frame in ns_color_index_to_rgba" 732dcfc850 Ignore all color fonts when using XFT aa0c679f48 Avoid unbounded growth of cl-random-state components (bug#... # Conflicts: # etc/NEWS # src/nsterm.m
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index c52a8ca2855..1962e07f8d0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5229,10 +5229,15 @@ grow_mini_window (struct window *w, int delta)
5229{ 5229{
5230 struct frame *f = XFRAME (w->frame); 5230 struct frame *f = XFRAME (w->frame);
5231 int old_height = window_body_height (w, true); 5231 int old_height = window_body_height (w, true);
5232 int min_height = FRAME_LINE_HEIGHT (f);
5232 5233
5233 eassert (MINI_WINDOW_P (w)); 5234 eassert (MINI_WINDOW_P (w));
5234 5235
5235 if ((delta != 0) && (old_height + delta >= FRAME_LINE_HEIGHT (f))) 5236 /* Never shrink mini-window to less than its minimum height. */
5237 if (old_height + delta < min_height)
5238 delta = old_height > min_height ? min_height - old_height : 0;
5239
5240 if (delta != 0)
5236 { 5241 {
5237 Lisp_Object root = FRAME_ROOT_WINDOW (f); 5242 Lisp_Object root = FRAME_ROOT_WINDOW (f);
5238 struct window *r = XWINDOW (root); 5243 struct window *r = XWINDOW (root);