summaryrefslogtreecommitdiff
path: root/lisp/emulation/vi.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emulation/vi.el')
-rw-r--r--lisp/emulation/vi.el2
1 files changed, 1 insertions, 1 deletions
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)))