diff src/window.c @ 35621:5f154b8fc2bd

(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.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 26 Jan 2001 20:01:43 +0000
parents c466298b5248
children 22d10a2fa31a
line wrap: on
line diff
--- 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);