]> git.eshelyaron.com Git - emacs.git/commitdiff
(end-of-buffer): Fix code scrolling specially
authorGerd Moellmann <gerd@gnu.org>
Wed, 10 Oct 2001 11:57:50 +0000 (11:57 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 10 Oct 2001 11:57:50 +0000 (11:57 +0000)
for the buffer end.

lisp/simple.el

index 91a99a7a3e037c0498834022d60488b6fe7f2ea2..010f6625348d9be975c2f81a7309fc04ab84e198 100644 (file)
@@ -412,7 +412,7 @@ Don't use this command in Lisp programs!
   ;; 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))