From e82bd92274ff748a89c86600abfecf8d68930f32 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 31 Oct 1999 13:04:20 +0000 Subject: [PATCH] (resize_mini_window): Compute needed height differently. --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.39.5