Mercurial > emacs
changeset 26258:4ca4f3f6c4a0
(resize_mini_window): Compute needed height differently.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 31 Oct 1999 13:04:20 +0000 |
parents | 34c767f03890 |
children | 912b004387d9 |
files | src/xdisp.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sun Oct 31 02:04:50 1999 +0000 +++ b/src/xdisp.c Sun Oct 31 13:04:20 1999 +0000 @@ -5519,7 +5519,8 @@ /* Find out the height of the text in the window. */ move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS); - height = (unit - 1 + it.current_y + last_height) / unit; + height = ((unit - 1 + it.current_y + it.max_ascent + it.max_descent) + / unit); height = max (1, height); /* Compute a suitable window start. */