# HG changeset patch # User Gerd Moellmann # Date 941375060 0 # Node ID 4ca4f3f6c4a048f3537ed95c25450caeebe307ee # Parent 34c767f038906dcbb13a66cdf6e21b920daa5e24 (resize_mini_window): Compute needed height differently. diff -r 34c767f03890 -r 4ca4f3f6c4a0 src/xdisp.c --- 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. */