mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-21 12:03:55 -08:00
(end-of-buffer): Fix code scrolling specially
for the buffer end.
This commit is contained in:
parent
a1cb593cde
commit
362d1682e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue