Commit 586b3759 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(resize-temp-buffer-window): Use count-screen-lines.

parent 5e3dac3f
......@@ -1338,7 +1338,7 @@ out of view."
temp-buffer-max-height))
(win-height (1- (window-height)))
(min-height (1- window-min-height))
(text-height (window-buffer-height(selected-window)))
(text-height (count-screen-lines))
(new-height (max (min text-height max-height) min-height)))
(enlarge-window (- new-height win-height)))))
......
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