Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e9c195b1
Commit
e9c195b1
authored
Apr 09, 2001
by
Gerd Moellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(window_internal_height): Return 1 less if the
window has a header line.
parent
ceeb3d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
src/window.c
src/window.c
+14
-8
No files found.
src/window.c
View file @
e9c195b1
...
@@ -3856,7 +3856,7 @@ mark_window_cursors_off (w)
...
@@ -3856,7 +3856,7 @@ mark_window_cursors_off (w)
}
}
/* Return number of lines of text (not counting mode line) in W. */
/* Return number of lines of text (not counting mode line
s
) in W. */
int
int
window_internal_height
(
w
)
window_internal_height
(
w
)
...
@@ -3864,13 +3864,19 @@ window_internal_height (w)
...
@@ -3864,13 +3864,19 @@ window_internal_height (w)
{
{
int
ht
=
XFASTINT
(
w
->
height
);
int
ht
=
XFASTINT
(
w
->
height
);
if
(
MINI_WINDOW_P
(
w
))
if
(
!
MINI_WINDOW_P
(
w
))
return
ht
;
{
if
(
!
NILP
(
w
->
parent
)
if
(
!
NILP
(
w
->
parent
)
||
!
NILP
(
w
->
vchild
)
||
!
NILP
(
w
->
hchild
)
||
!
NILP
(
w
->
vchild
)
||
!
NILP
(
w
->
next
)
||
!
NILP
(
w
->
prev
)
||
!
NILP
(
w
->
hchild
)
||
FRAME_WANTS_MODELINE_P
(
XFRAME
(
WINDOW_FRAME
(
w
))))
||
!
NILP
(
w
->
next
)
return
ht
-
1
;
||
!
NILP
(
w
->
prev
)
||
WINDOW_WANTS_MODELINE_P
(
w
))
--
ht
;
if
(
WINDOW_WANTS_HEADER_LINE_P
(
w
))
--
ht
;
}
return
ht
;
return
ht
;
}
}
...
...
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