# HG changeset patch # User Jan Dj¸«£rv # Date 1183982447 0 # Node ID ffd64654faa70240bd7351cd237b91eeb3437726 # Parent 44b53335982adb65f9fa1751c2952a7faabe4ff8 (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. diff -r 44b53335982a -r ffd64654faa7 lisp/window.el --- a/lisp/window.el Mon Jul 09 06:48:40 2007 +0000 +++ b/lisp/window.el Mon Jul 09 12:00:47 2007 +0000 @@ -645,10 +645,7 @@ ;; 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.