# HG changeset patch # User Gerd Moellmann # Date 997887411 0 # Node ID a6f5dfd3e5f484f5f5be97143d72c6f8665a2061 # Parent 505c81790c4938a72778c09cbcf0d96faa471dd6 (window_scroll_pixel_based): Don't recenter if PT is partially visible in the window. diff -r 505c81790c49 -r a6f5dfd3e5f4 src/window.c --- 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: