1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

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

This commit is contained in:
Gerd Moellmann 2000-04-19 19:07:29 +00:00
parent 5e3dac3f5a
commit 586b375962

View File

@ -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)))))