1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

(vi-next-line): Ignore return value of line-move.

This commit is contained in:
Richard M. Stallman 2007-08-12 18:05:08 +00:00
parent 00b733b76d
commit c0d8c0a4c5

View file

@ -788,7 +788,7 @@ The given COUNT is remembered for future scrollings."
"Go down count lines, try to keep at the same column."
(interactive "p")
(setq this-command 'next-line) ; this is a needed trick
(if (= (point) (or (line-move count) (point)))
(if (= (point) (progn (line-move count) (point)))
(ding) ; no moving, already at end of buffer
(setq last-command 'next-line)))