comparison src/xdisp.c @ 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 0904e8f4e08a
children 0bef27649ba5
comparison
equal deleted inserted replaced
37305:8381b1ef7f3a 37306:600d4fa98eb1
10122 w->base_line_number = Qnil; 10122 w->base_line_number = Qnil;
10123 10123
10124 /* Move backward half the height of the window. */ 10124 /* Move backward half the height of the window. */
10125 init_iterator (&it, w, PT, PT_BYTE, NULL, DEFAULT_FACE_ID); 10125 init_iterator (&it, w, PT, PT_BYTE, NULL, DEFAULT_FACE_ID);
10126 it.current_y = it.last_visible_y; 10126 it.current_y = it.last_visible_y;
10127 move_it_vertically_backward (&it, it.last_visible_y / 2); 10127 move_it_vertically_backward (&it, window_box_height (w) / 2);
10128 xassert (IT_CHARPOS (it) >= BEGV); 10128 xassert (IT_CHARPOS (it) >= BEGV);
10129 10129
10130 /* The function move_it_vertically_backward may move over more 10130 /* The function move_it_vertically_backward may move over more
10131 than the specified y-distance. If it->w is small, e.g. a 10131 than the specified y-distance. If it->w is small, e.g. a
10132 mini-buffer window, we may end up in front of the window's 10132 mini-buffer window, we may end up in front of the window's