diff --git a/test/src/xdisp-tests.el b/test/src/xdisp-tests.el index fad90fad531..a7e05a57de9 100644 --- a/test/src/xdisp-tests.el +++ b/test/src/xdisp-tests.el @@ -57,9 +57,9 @@ (xdisp-tests--in-minibuffer (let ((max-mini-window-height 4)) (dotimes (_ 80) (insert "\nhello")) - (beginning-of-buffer) + (goto-char (point-min)) (redisplay 'force) - (end-of-buffer) + (goto-char (point-max)) ;; A simple edit like removing the last `o' shouldn't cause ;; the rest of the minibuffer's text to move. (list