aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2000-10-22 04:18:14 +0000
committerMiles Bader2000-10-22 04:18:14 +0000
commit582b0985f51d7ed2d26852b0cc64a598d3680ef0 (patch)
tree8c98ca6da1416bdea802ced233eed2bcbf2c4a40 /lisp
parent1e221c163cd0ee5e24f621db993be334b87c1e09 (diff)
downloademacs-582b0985f51d7ed2d26852b0cc64a598d3680ef0.tar.gz
emacs-582b0985f51d7ed2d26852b0cc64a598d3680ef0.zip
(window-text-height): Don't expect minibuffers to have mode-lines.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/window.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el
index ab1b52b43fa..4b0d3b5334f 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -338,7 +338,8 @@ returning fewer lines than actually exist in the case where the real
338value cannot be determined." 338value cannot be determined."
339 (with-current-buffer (window-buffer window) 339 (with-current-buffer (window-buffer window)
340 (- (window-height window) 340 (- (window-height window)
341 (if mode-line-format 341 (if (and (not (window-minibuffer-p window))
342 mode-line-format)
342 (1+ (mode-line-window-height-fudge)) 343 (1+ (mode-line-window-height-fudge))
343 0) 344 0)
344 (if header-line-format 345 (if header-line-format