changeset 38672:d22bb212fc40

(resize_mini_window): If Vmax_mini_window_height is a float, determine the max height from the frame's height.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 03 Aug 2001 09:55:21 +0000
parents 07f962cbdd4e
children fb0d03516662
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Aug 02 13:56:54 2001 +0000
+++ b/src/xdisp.c	Fri Aug 03 09:55:21 2001 +0000
@@ -6547,7 +6547,7 @@
 
       /* Compute the max. number of lines specified by the user.  */
       if (FLOATP (Vmax_mini_window_height))
-	max_height = XFLOATINT (Vmax_mini_window_height) * total_height;
+	max_height = XFLOATINT (Vmax_mini_window_height) * FRAME_HEIGHT (f);
       else if (INTEGERP (Vmax_mini_window_height))
 	max_height = XINT (Vmax_mini_window_height);
       else