changeset 18900:23ee59ec294b

(set_window_height): Allow all heights > 0 for minibuffer windows. (change_window_height): Fix one-off comparing DELTA with MAXIMUM.
author Richard M. Stallman <rms@gnu.org>
date Mon, 21 Jul 1997 20:00:36 +0000
parents 3cd2c58b1d6f
children b9b03935853a
files src/window.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Mon Jul 21 19:57:26 1997 +0000
+++ b/src/window.c	Mon Jul 21 20:00:36 1997 +0000
@@ -1735,7 +1735,9 @@
 
   if (!nodelete
       && ! NILP (w->parent)
-      && height < window_min_height)
+      && (MINI_WINDOW_P (w)
+	  ? height < 1
+	  : height < window_min_height))
     {
       delete_window (window);
       return;
@@ -2608,7 +2610,7 @@
     maximum += (*sizefun) (prev) - MINSIZE (prev);
 
   /* If we can get it all from them, do so.  */
-  if (delta < maximum)
+  if (delta <= maximum)
     {
       Lisp_Object first_unaffected;
       Lisp_Object first_affected;