From: Gerd Moellmann Date: Sun, 31 Oct 1999 13:04:20 +0000 (+0000) Subject: (resize_mini_window): Compute needed height differently. X-Git-Tag: emacs-pretest-21.0.90~6247 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e82bd92274ff748a89c86600abfecf8d68930f32;p=emacs.git (resize_mini_window): Compute needed height differently. --- diff --git a/src/xdisp.c b/src/xdisp.c index fd9d7c7d230..1c2e22e7a53 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -5519,7 +5519,8 @@ resize_mini_window (w, exact_p) /* 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. */