Mercurial > emacs
changeset 37306:600d4fa98eb1
(redisplay_window) <recenter>: Call window_box_height
instead of using it.last_visible_y for the height of the window.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 10 Apr 2001 15:40:40 +0000 |
parents | 8381b1ef7f3a |
children | f028d889de06 |
files | src/xdisp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Tue Apr 10 15:39:53 2001 +0000 +++ b/src/xdisp.c Tue Apr 10 15:40:40 2001 +0000 @@ -10124,7 +10124,7 @@ /* 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