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
3a030013
Commit
3a030013
authored
Apr 10, 2001
by
Gerd Moellmann
Browse files
(redisplay_window) <recenter>: Call window_box_height
instead of using it.last_visible_y for the height of the window.
parent
202379cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/xdisp.c
src/xdisp.c
+1
-1
No files found.
src/xdisp.c
View file @
3a030013
...
...
@@ -10124,7 +10124,7 @@ redisplay_window (window, just_this_one_p)
/* Move backward half the height of the window. */
init_iterator (&it, w, PT, PT_BYTE, NULL, DEFAULT_FACE_ID);
it.current_y = it.last_visible_y;
move_it_vertically_backward (&it,
it.last_visible_y
/ 2);
move_it_vertically_backward (&it,
window_box_height (w)
/ 2);
xassert (IT_CHARPOS (it) >= BEGV);
/* The function move_it_vertically_backward may move over more
...
...
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