Mercurial > emacs
changeset 49011:594a08370cb3
(window_scroll_pixel_based): Partially undo last change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 01 Jan 2003 17:00:34 +0000 |
parents | ce422542bd8d |
children | 5f0cc4c0a0c7 |
files | src/window.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Wed Jan 01 16:59:54 2003 +0000 +++ b/src/window.c Wed Jan 01 17:00:34 2003 +0000 @@ -4147,9 +4147,11 @@ else move_it_by_lines (&it, n, 1); - /* End if we end up at ZV or BEGV. */ + /* We failed if we find ZV is already on the screen (scrolling up, + means there's nothing past the end), or if we can't start any + earlier (scrolling down, means there's nothing past the top). */ if ((n > 0 && IT_CHARPOS (it) == ZV) - || (n < 0 && IT_CHARPOS (it) == BEGV)) + || (n < 0 && IT_CHARPOS (it) == CHARPOS (start))) { if (IT_CHARPOS (it) == ZV) {