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:
parent
3945bdcad5
commit
f3ca3f9bf7
2 changed files with 8 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue