From: Richard M. Stallman Date: Sun, 12 Aug 2007 18:05:08 +0000 (+0000) Subject: (vi-next-line): Ignore return value of line-move. X-Git-Tag: emacs-pretest-22.1.90~1014 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0d8c0a4c53163b99ab500a0329c917736c2b131;p=emacs.git (vi-next-line): Ignore return value of line-move. --- diff --git a/lisp/emulation/vi.el b/lisp/emulation/vi.el index 54fb2d1e997..977a7980803 100644 --- a/lisp/emulation/vi.el +++ b/lisp/emulation/vi.el @@ -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)))