]> git.eshelyaron.com Git - emacs.git/commitdiff
(check_frame_size): Fix minimum height calculation.
authorRichard M. Stallman <rms@gnu.org>
Mon, 21 Jan 2002 08:53:42 +0000 (08:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 21 Jan 2002 08:53:42 +0000 (08:53 +0000)
src/window.c

index 9f7dd58f0cc9bff309251e051cace175b8dd576e..2340ec67aa267b1b4417166c4969341b7f9e5c54 100644 (file)
@@ -2142,13 +2142,12 @@ check_frame_size (frame, rows, cols)
      int *rows, *cols;
 {
   /* For height, we have to see:
-     whether the frame has a minibuffer,
-     whether it wants a mode line, and
-     whether it has a menu bar.  */
-  int min_height =
-    (FRAME_MINIBUF_ONLY_P (frame) ? MIN_SAFE_WINDOW_HEIGHT - 1
-     : (! FRAME_HAS_MINIBUF_P (frame)) ? MIN_SAFE_WINDOW_HEIGHT
-     : 2 * MIN_SAFE_WINDOW_HEIGHT - 1);
+     how many windows the frame has at minimum (one or two),
+     and whether it has a menu bar or other special stuff at the top.  */
+  int min_height
+    = ((FRAME_MINIBUF_ONLY_P (frame) || ! FRAME_HAS_MINIBUF_P (frame))
+       ? MIN_SAFE_WINDOW_HEIGHT
+       : 2 * MIN_SAFE_WINDOW_HEIGHT);
   
   if (FRAME_TOP_MARGIN (frame) > 0)
     min_height += FRAME_TOP_MARGIN (frame);