aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-31 10:06:35 +0000
committerGerd Moellmann2001-10-31 10:06:35 +0000
commiteafa319686563cbfb93ba725bb1d5d7a5e8c1a3b (patch)
tree9242752372308652e31f0dc9cdff5dfaaa1af6e5 /src
parent95fa1ff74aa9ae40d5ef4b680ea606287c40327f (diff)
downloademacs-eafa319686563cbfb93ba725bb1d5d7a5e8c1a3b.tar.gz
emacs-eafa319686563cbfb93ba725bb1d5d7a5e8c1a3b.zip
(grow_mini_window): Handle case that the root
window is already smaller than the nominal mininum height.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/window.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cf8cc35a5fa..cb08a806bb5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-10-31 Gerd Moellmann <gerd@gnu.org>
2
3 * window.c (grow_mini_window): Handle case that the root
4 window is already smaller than the nominal mininum height.
5
12001-10-30 Stefan Monnier <monnier@cs.yale.edu> 62001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2 7
3 * emacs.c (main): Don't call keys_of_macros any more. 8 * emacs.c (main): Don't call keys_of_macros any more.
diff --git a/src/window.c b/src/window.c
index 0c095c1a826..5f122976d9b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3751,7 +3751,9 @@ grow_mini_window (w, delta)
3751 { 3751 {
3752 int min_height = window_min_size (root, 0, 0, 0); 3752 int min_height = window_min_size (root, 0, 0, 0);
3753 if (XFASTINT (root->height) - delta < min_height) 3753 if (XFASTINT (root->height) - delta < min_height)
3754 delta = XFASTINT (root->height) - min_height; 3754 /* Note that the roor window may already be smaller than
3755 min_height. */
3756 delta = max (0, XFASTINT (root->height) - min_height);
3755 } 3757 }
3756 3758
3757 if (delta) 3759 if (delta)