From 3a03001381fe4728b710de0b8f60026d648826d9 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 10 Apr 2001 15:40:40 +0000 Subject: [PATCH] (redisplay_window) : Call window_box_height instead of using it.last_visible_y for the height of the window. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 61fb6334678..216a271a5ec 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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 -- 2.39.5