summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-01-26 20:01:43 +0000
committerGerd Moellmann <gerd@gnu.org>2001-01-26 20:01:43 +0000
commit20a3b4fe419517f83b84358e27441f015a7b5a45 (patch)
treec82937a1f51614d703001c8bd9c0bc74e3f4bed4 /src/window.c
parent58282c7d8bee43b14eea8ab89f9909381fabad98 (diff)
downloademacs-20a3b4fe419517f83b84358e27441f015a7b5a45.tar.gz
(size_window): Set the window's orig_top to nil when
changing heights, so that a future shrink_mini_window won't restore a bogus height.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index e507254f8c0..1b6ac07955d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2445,6 +2445,7 @@ size_window (window, size, width_p, nodelete_p)
sideward = &w->hchild;
forward = &w->vchild;
w->height = make_number (size);
+ w->orig_height = Qnil;
}
if (!NILP (*sideward))
@@ -3803,6 +3804,8 @@ shrink_mini_window (w)
}
else if (XFASTINT (w->height) > 1)
{
+ /* Distribute the additional lines of the mini-window
+ among the other windows. */
Lisp_Object window;
XSETWINDOW (window, w);
enlarge_window (window, 1 - XFASTINT (w->height), 0);