diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 5aa036ec810..3d8fa95f2fe 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4822,7 +4822,9 @@ window_scroll_pixel_based (window, n, whole, noerror) | |||
| 4822 | /* We moved the window start towards BEGV, so PT may be now | 4822 | /* We moved the window start towards BEGV, so PT may be now |
| 4823 | in the scroll margin at the bottom. */ | 4823 | in the scroll margin at the bottom. */ |
| 4824 | move_it_to (&it, PT, -1, | 4824 | move_it_to (&it, PT, -1, |
| 4825 | it.last_visible_y - this_scroll_margin - 1, -1, | 4825 | (it.last_visible_y - CURRENT_HEADER_LINE_HEIGHT (w) |
| 4826 | - this_scroll_margin - 1), | ||
| 4827 | -1, | ||
| 4826 | MOVE_TO_POS | MOVE_TO_Y); | 4828 | MOVE_TO_POS | MOVE_TO_Y); |
| 4827 | 4829 | ||
| 4828 | /* Save our position, in case it's correct. */ | 4830 | /* Save our position, in case it's correct. */ |