diff --git a/lisp/simple.el b/lisp/simple.el index 35dd0f59e29..564265d8c60 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8053,8 +8053,9 @@ line-move-1 ;; We avoid vertical-motion when possible ;; because that has to fontify. (forward-line 1)) - ;; Otherwise move a more sophisticated way. - ((zerop (vertical-motion 1)) + ;; Otherwise move a more sophisticated way, unless + ;; we're in the minibuffer. + ((or (zerop (vertical-motion 1)) (minibufferp)) (if (not noerror) (signal 'end-of-buffer nil) (setq done t))))