Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
67b73e3a
Commit
67b73e3a
authored
Oct 26, 2007
by
Martin Rudalics
Browse files
(window_min_size_2): Don't count header-line.
parent
72229917
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
src/ChangeLog
src/ChangeLog
+4
-0
src/window.c
src/window.c
+7
-5
No files found.
src/ChangeLog
View file @
67b73e3a
2007-10-26 Martin Rudalics <rudalics@gmx.at>
* window.c (window_min_size_2): Don't count header-line.
2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
* frame.h (struct frame): Move all bit fields after the first bit
...
...
src/window.c
View file @
67b73e3a
...
...
@@ -2690,9 +2690,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)
...
...
@@ -2711,8 +2710,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;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment