]> git.eshelyaron.com Git - emacs.git/commitdiff
(resize_mini_window): Compute needed height differently.
authorGerd Moellmann <gerd@gnu.org>
Sun, 31 Oct 1999 13:04:20 +0000 (13:04 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 31 Oct 1999 13:04:20 +0000 (13:04 +0000)
src/xdisp.c

index fd9d7c7d230b36290ed0337ed82acf4e6658b793..1c2e22e7a53cbd2c0df7509a69c479d35d069c00 100644 (file)
@@ -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.  */