# HG changeset patch # User Gerd Moellmann # Date 1002714939 0 # Node ID b6933b0f1ef2dd1e27ddf243bd0d9067474d9bb8 # Parent 1985c223de1060a888e3f2d72a5a9879e9e2c686 (end-of-buffer): Fix code scrolling specially for the buffer end. diff -r 1985c223de10 -r b6933b0f1ef2 lisp/simple.el --- a/lisp/simple.el Wed Oct 10 09:43:20 2001 +0000 +++ b/lisp/simple.el Wed Oct 10 11:55:39 2001 +0000 @@ -412,7 +412,7 @@ ;; If we went to a place in the middle of the buffer, ;; adjust it to the beginning of a line. (cond (arg (forward-line 1)) - ((< (point) (window-end nil t)) + ((> (point) (window-end nil t)) ;; If the end of the buffer is not already on the screen, ;; then scroll specially to put it near, but not at, the bottom. (overlay-recenter (point))