# HG changeset patch
# User Gerd Moellmann <gerd@gnu.org>
# Date 980539303 0
# Node ID 5f154b8fc2bdb00f437d7f665e4e3e0e6d43aa21
# Parent  654bde0f95a649e0146a057fc945cb10b2992b82
(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.

diff -r 654bde0f95a6 -r 5f154b8fc2bd src/window.c
--- a/src/window.c	Fri Jan 26 19:17:15 2001 +0000
+++ b/src/window.c	Fri Jan 26 20:01:43 2001 +0000
@@ -2445,6 +2445,7 @@
       sideward = &w->hchild;
       forward = &w->vchild;
       w->height = make_number (size);
+      w->orig_height = Qnil;
     }
 
   if (!NILP (*sideward))
@@ -3803,6 +3804,8 @@
     }
   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);