]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_window) <recenter>: Call window_box_height
authorGerd Moellmann <gerd@gnu.org>
Tue, 10 Apr 2001 15:40:40 +0000 (15:40 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 10 Apr 2001 15:40:40 +0000 (15:40 +0000)
instead of using it.last_visible_y for the height of the window.

src/xdisp.c

index 61fb6334678e972b89756757fd66a8fce491b641..216a271a5ecb0f203a2a72f6615b2d9da5ee6a47 100644 (file)
@@ -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