aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-10-26 20:50:17 +0000
committerMartin Rudalics2007-10-26 20:50:17 +0000
commitb6ff295c434269fe824ec47cbfc87c6a02dfd94d (patch)
tree08e7b57b3ba75f33a55e2282e3b4dbe4170d309e
parent70cd9104ca2f1f7443cda004d9ab576d49503aca (diff)
downloademacs-b6ff295c434269fe824ec47cbfc87c6a02dfd94d.tar.gz
emacs-b6ff295c434269fe824ec47cbfc87c6a02dfd94d.zip
(window_min_size_2): Don't count header-line.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/window.c12
2 files changed, 11 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 86f77fabd02..05995663862 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-10-26 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (window_min_size_2): Don't count header-line.
4
12007-10-25 Juanma Barranquero <lekktu@gmail.com> 52007-10-25 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * w32.c (init_environment): Fix tiny memory leak. 7 * w32.c (init_environment): Fix tiny memory leak.
diff --git a/src/window.c b/src/window.c
index 6fe78166ba1..4e8ad699500 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2665,9 +2665,8 @@ window_fixed_size_p (w, width_p, check_siblings_p)
2665} 2665}
2666 2666
2667/* Return the minimum size for leaf window W. WIDTH_P non-zero means 2667/* Return the minimum size for leaf window W. WIDTH_P non-zero means
2668 take into account fringes and the scrollbar of W. WIDTH_P zero 2668 take into account fringes and the scrollbar of W. WIDTH_P zero means
2669 means take into account mode-line and header-line of W. Return 1 2669 take into account mode-line of W. Return 1 for the minibuffer. */
2670 for the minibuffer. */
2671 2670
2672static int 2671static int
2673window_min_size_2 (w, width_p) 2672window_min_size_2 (w, width_p)
@@ -2686,8 +2685,11 @@ window_min_size_2 (w, width_p)
2686 else 2685 else
2687 size = max (window_min_height, 2686 size = max (window_min_height,
2688 (MIN_SAFE_WINDOW_HEIGHT 2687 (MIN_SAFE_WINDOW_HEIGHT
2689 + (WINDOW_WANTS_MODELINE_P (w) ? 1 : 0) 2688 /* Don't count the header-line here. It would break
2690 + (WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0 ))); 2689 splitting a window with a header-line when the new
2690 window shall have a height of two (calculator does
2691 that). */
2692 + (WINDOW_WANTS_MODELINE_P (w) ? 1 : 0)));
2691 2693
2692 return size; 2694 return size;
2693} 2695}