changeset 78534:9ba019f08d78

(vi-next-line): Ignore return value of line-move.
author Richard M. Stallman <rms@gnu.org>
date Sun, 12 Aug 2007 18:05:08 +0000
parents 8bf8256b3ffa
children 651c50f01f5f
files lisp/emulation/vi.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)))