diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/window.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el index ef9dd5d896d..2ae1a2c9e79 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -532,7 +532,11 @@ the height exactly, but attempts to be conservative, by allocating more | |||
| 532 | lines than are actually needed in the case where some error may be present." | 532 | lines than are actually needed in the case where some error may be present." |
| 533 | (let ((delta (- height (window-text-height window)))) | 533 | (let ((delta (- height (window-text-height window)))) |
| 534 | (unless (zerop delta) | 534 | (unless (zerop delta) |
| 535 | (let ((window-min-height 1)) | 535 | ;; Setting window-min-height to a value like 1 can lead to very |
| 536 | ;; bizarre displays because it also allows Emacs to make *other* | ||
| 537 | ;; windows 1-line tall, which means that there's no more space for | ||
| 538 | ;; the modeline. | ||
| 539 | (let ((window-min-height (min 2 height))) ;One text line plus a modeline. | ||
| 536 | (if (and window (not (eq window (selected-window)))) | 540 | (if (and window (not (eq window (selected-window)))) |
| 537 | (save-selected-window | 541 | (save-selected-window |
| 538 | (select-window window) | 542 | (select-window window) |