diff options
| author | Paul Eggert | 2018-01-01 01:13:04 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-01-01 01:13:04 -0800 |
| commit | bb267f17f9e1e593d8dee379aceee22d7fa42680 (patch) | |
| tree | 466dfb3f8ef7587ebcb652709bd1cc05d18a92f3 /src/window.c | |
| parent | a5835dfee139322de7aa071f1c87ef015acbecad (diff) | |
| parent | 63b04c11d530f4a6a41f112d1b3ba1ed1eb81195 (diff) | |
| download | emacs-bb267f17f9e1e593d8dee379aceee22d7fa42680.tar.gz emacs-bb267f17f9e1e593d8dee379aceee22d7fa42680.zip | |
Merge from origin/emacs-26
63b04c11d5 Fix copyright years by hand
5c7dd8a783 Update copyright year to 2018
220a9ecba1 Merge from Gnulib
312c565566 Don't add empty keyboard macro to macro ring (Bug#24992)
39ca289a7a Allow customization of decoding of "man" command
f8240815ea * etc/NEWS: Add security consideration note on passphrase ...
0c78822c70 Fix subtle problem with scroll-down when scroll-margin is ...
acd289c5a4 Fix problems with indexing in User manual
b240c7846b * lisp/help.el (describe-key): Only (copy-sequence elt) wh...
e879a5444a * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846
81b1028b63 Improve documentation of 'inhibit-modification-hooks' and ...
7175496d7a Fix doc string of 'enable-recursive-minibuffers'
5b38406491 Fix documentation of delsel and of killing text
# Conflicts:
# etc/NEWS
# etc/refcards/ru-refcard.tex
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 |