# HG changeset patch # User Martin Rudalics # Date 1193432207 0 # Node ID 4fe615944676bc81aa63d70d0a9085b6ebd3c3f7 # Parent 2b92bd846058003e53567f255e4d282c3ef78a96 (window_min_size_2): Don't count header-line. diff -r 2b92bd846058 -r 4fe615944676 src/window.c --- a/src/window.c Fri Oct 26 20:35:31 2007 +0000 +++ b/src/window.c Fri Oct 26 20:56:47 2007 +0000 @@ -2690,9 +2690,8 @@ } /* 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) @@ -2711,8 +2710,11 @@ 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; }