From 825906b8afc9f011ac6f7a16fcfbbafdf0226523 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Mon, 9 Jul 2007 12:00:56 +0000 Subject: [PATCH] (fit-window-to-buffer): Remove setting of window-min-height to 1 as enlarge-window uses the value to resize/shrink windows other than WINDOW if needed. --- lisp/ChangeLog | 6 ++++++ lisp/window.el | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 25ed4c24e31..3f9d5b3bce1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2007-07-09 Jan Dj,Ad(Brv + + * window.el (fit-window-to-buffer): Remove setting of window-min-height + to 1 as enlarge-window uses the value to resize/shrink windows other than + WINDOW if needed. + 2007-07-08 Katsumi Yamaoka * cus-start.el (file-coding-system-alist): Fix custom type. diff --git a/lisp/window.el b/lisp/window.el index 921d84d6e7d..216e89249c6 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -645,10 +645,7 @@ header-line." ;; desired-height lines, constrained by MIN-HEIGHT and MAX-HEIGHT. (- (max (min desired-height max-height) (or min-height window-min-height)) - window-height)) - ;; We do our own height checking, so avoid any restrictions due to - ;; window-min-height. - (window-min-height 1)) + window-height))) ;; Don't try to redisplay with the cursor at the end ;; on its own line--that would force a scroll and spoil things. -- 2.39.2