diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index 504dcd38357..08c3f32dff5 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Window creation, deletion and examination for GNU Emacs. | 1 | /* Window creation, deletion and examination for GNU Emacs. |
| 2 | Does not include redisplay. | 2 | Does not include redisplay. |
| 3 | Copyright (C) 1985-1987, 1993-1998, 2000-2017 Free Software | 3 | Copyright (C) 1985-1987, 1993-1998, 2000-2018 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -5397,12 +5397,13 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5397 | if (it.what == IT_EOB) | 5397 | if (it.what == IT_EOB) |
| 5398 | partial_p = | 5398 | partial_p = |
| 5399 | it.current_y + it.ascent + it.descent | 5399 | it.current_y + it.ascent + it.descent |
| 5400 | > it.last_visible_y - WINDOW_HEADER_LINE_HEIGHT (w); | 5400 | > it.last_visible_y - this_scroll_margin - WINDOW_HEADER_LINE_HEIGHT (w); |
| 5401 | else | 5401 | else |
| 5402 | { | 5402 | { |
| 5403 | move_it_by_lines (&it, 1); | 5403 | move_it_by_lines (&it, 1); |
| 5404 | partial_p = | 5404 | partial_p = |
| 5405 | it.current_y > it.last_visible_y - WINDOW_HEADER_LINE_HEIGHT (w); | 5405 | it.current_y |
| 5406 | > it.last_visible_y - this_scroll_margin - WINDOW_HEADER_LINE_HEIGHT (w); | ||
| 5406 | } | 5407 | } |
| 5407 | 5408 | ||
| 5408 | if (charpos == PT && !partial_p | 5409 | if (charpos == PT && !partial_p |