From c6b530ed93cce351fb5c87cfecaa9298ba7a9698 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 21 Jul 1997 20:00:36 +0000 Subject: [PATCH] (set_window_height): Allow all heights > 0 for minibuffer windows. (change_window_height): Fix one-off comparing DELTA with MAXIMUM. --- src/window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/window.c b/src/window.c index 87807ac1de3..95559b6fbc7 100644 --- a/src/window.c +++ b/src/window.c @@ -1735,7 +1735,9 @@ set_window_height (window, height, nodelete) 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 @@ change_window_height (delta, widthflag) 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; -- 2.39.2