Mercurial > emacs
diff src/window.c @ 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 | b1f9c6a7a002 |
| children | 5f60884970a8 |
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:
