Mercurial > emacs
changeset 38830:a6f5dfd3e5f4
(window_scroll_pixel_based): Don't recenter if
PT is partially visible in the window.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 15 Aug 2001 14:56:51 +0000 |
parents | 505c81790c49 |
children | 0bfe38cafe33 |
files | src/window.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Wed Aug 15 14:31:44 2001 +0000 +++ b/src/window.c Wed Aug 15 14:56:51 2001 +0000 @@ -3960,8 +3960,10 @@ SET_TEXT_POS_FROM_MARKER (start, w->start); /* If PT is not visible in WINDOW, move back one half of - the screen. */ - tem = Fpos_visible_in_window_p (make_number (PT), window, Qnil); + the screen. Allow PT to be partially visible, otherwise + something like (scroll-down 1) with PT in the line before + the partially visible one would recenter. */ + tem = Fpos_visible_in_window_p (make_number (PT), window, Qt); if (NILP (tem)) { /* Move backward half the height of the window. Performance note: