]> git.eshelyaron.com Git - emacs.git/commitdiff
(window_min_size_2): Don't count header-line.
authorMartin Rudalics <rudalics@gmx.at>
Fri, 26 Oct 2007 20:50:17 +0000 (20:50 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 26 Oct 2007 20:50:17 +0000 (20:50 +0000)
src/ChangeLog
src/window.c

index 86f77fabd02a8d9ba7e4070f12d9baa0e781e1ca..0599566386266ee1c52261286eea469bb049b783 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-26  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (window_min_size_2): Don't count header-line.
+
 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
 
        * w32.c (init_environment): Fix tiny memory leak.
index 6fe78166ba12e56a190733ae214a031c09470214..4e8ad69950089eafffe9cddfbcbe3d71f8c6254f 100644 (file)
@@ -2665,9 +2665,8 @@ window_fixed_size_p (w, width_p, check_siblings_p)
 }
 
 /* Return the minimum size for leaf window W.  WIDTH_P non-zero means
-   take into account fringes and the scrollbar of W.  WIDTH_P zero
-   means take into account mode-line and header-line of W.  Return 1
-   for the minibuffer.  */
+   take into account fringes and the scrollbar of W.  WIDTH_P zero means
+   take into account mode-line of W.  Return 1 for the minibuffer.  */
 
 static int
 window_min_size_2 (w, width_p)
@@ -2686,8 +2685,11 @@ window_min_size_2 (w, width_p)
   else
     size = max (window_min_height,
                (MIN_SAFE_WINDOW_HEIGHT
-                + (WINDOW_WANTS_MODELINE_P (w) ? 1 : 0)
-                + (WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0 )));
+                /* Don't count the header-line here.  It would break
+                   splitting a window with a header-line when the new
+                   window shall have a height of two (calculator does
+                   that). */
+                + (WINDOW_WANTS_MODELINE_P (w) ? 1 : 0)));
 
   return size;
 }