Mercurial > emacs
changeset 81770:ffd64654faa7
(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.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Mon, 09 Jul 2007 12:00:47 +0000 |
parents | 44b53335982a |
children | 500aec79cf40 |
files | lisp/window.el |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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.