Commit 582b0985 authored by Miles Bader's avatar Miles Bader
Browse files

(window-text-height): Don't expect minibuffers to have mode-lines.

parent 1e221c16
......@@ -338,7 +338,8 @@ returning fewer lines than actually exist in the case where the real
value cannot be determined."
(with-current-buffer (window-buffer window)
(- (window-height window)
(if mode-line-format
(if (and (not (window-minibuffer-p window))
mode-line-format)
(1+ (mode-line-window-height-fudge))
0)
(if header-line-format
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment