diff options
| author | Gerd Moellmann | 2001-10-31 10:06:35 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-31 10:06:35 +0000 |
| commit | eafa319686563cbfb93ba725bb1d5d7a5e8c1a3b (patch) | |
| tree | 9242752372308652e31f0dc9cdff5dfaaa1af6e5 /src/window.c | |
| parent | 95fa1ff74aa9ae40d5ef4b680ea606287c40327f (diff) | |
| download | emacs-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/window.c')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |