1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-24 05:22:04 -08:00

(grow_mini_window): Handle case that the root

window is already smaller than the nominal mininum height.
This commit is contained in:
Gerd Moellmann 2001-10-31 10:12:09 +00:00
parent 3945bdcad5
commit f3ca3f9bf7
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-10-31 Gerd Moellmann <gerd@gnu.org>
* window.c (grow_mini_window): Handle case that the root
window is already smaller than the nominal mininum height.
2001-10-31 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* keyboard.c (Freset_this_command_lengths): Doc fix.

View file

@ -3777,7 +3777,9 @@ grow_mini_window (w, delta)
{
int min_height = window_min_size (root, 0, 0, 0);
if (XFASTINT (root->height) - delta < min_height)
delta = XFASTINT (root->height) - min_height;
/* Note that the roor window may already be smaller than
min_height. */
delta = max (0, XFASTINT (root->height) - min_height);
}
if (delta)