aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-10-31 13:04:20 +0000
committerGerd Moellmann1999-10-31 13:04:20 +0000
commite82bd92274ff748a89c86600abfecf8d68930f32 (patch)
tree95c1ee43c7ab46f919fd3795d6bfad559b4ec9a2
parent7843e09cdc402f6f9ea1a7f549180dff542d1cc0 (diff)
downloademacs-e82bd92274ff748a89c86600abfecf8d68930f32.tar.gz
emacs-e82bd92274ff748a89c86600abfecf8d68930f32.zip
(resize_mini_window): Compute needed height differently.
-rw-r--r--src/xdisp.c3
1 files changed, 2 insertions, 1 deletions
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)
5519 5519
5520 /* Find out the height of the text in the window. */ 5520 /* Find out the height of the text in the window. */
5521 move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS); 5521 move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS);
5522 height = (unit - 1 + it.current_y + last_height) / unit; 5522 height = ((unit - 1 + it.current_y + it.max_ascent + it.max_descent)
5523 / unit);
5523 height = max (1, height); 5524 height = max (1, height);
5524 5525
5525 /* Compute a suitable window start. */ 5526 /* Compute a suitable window start. */