diff options
| author | Gerd Moellmann | 2001-04-10 15:40:40 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-04-10 15:40:40 +0000 |
| commit | 3a03001381fe4728b710de0b8f60026d648826d9 (patch) | |
| tree | 1d68e103b77457f4f7e9d0c9efff841e3c4926f1 /src | |
| parent | 202379cf467231fef25ebd78c705e64664495256 (diff) | |
| download | emacs-3a03001381fe4728b710de0b8f60026d648826d9.tar.gz emacs-3a03001381fe4728b710de0b8f60026d648826d9.zip | |
(redisplay_window) <recenter>: Call window_box_height
instead of using it.last_visible_y for the height of the window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 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 |