# HG changeset patch # User Richard M. Stallman # Date 1186941908 0 # Node ID 9ba019f08d78c507bd41d413aa1ab2eb5a16d9a2 # Parent 8bf8256b3ffa9e85fb72eae1f1f8651e69aea09e (vi-next-line): Ignore return value of line-move. diff -r 8bf8256b3ffa -r 9ba019f08d78 lisp/emulation/vi.el --- a/lisp/emulation/vi.el Sun Aug 12 18:02:39 2007 +0000 +++ b/lisp/emulation/vi.el Sun Aug 12 18:05:08 2007 +0000 @@ -788,7 +788,7 @@ "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)))