Fix 'next-line' in batch mode.

* lisp/simple.el (line-move-finish): Don't use 'vertical-motion'
in batch mode.  Reported by john muhl <jm@pub.pink>.  (Bug#72420)
This commit is contained in:
Eli Zaretskii 2024-08-24 11:02:01 +03:00
parent 88b51c1c6b
commit c1181975ef

View file

@ -8200,6 +8200,7 @@ If NOERROR, don't signal an error if we can't move that many lines."
;; Move to the desired column.
(if (and line-move-visual
(not noninteractive)
(not (or truncate-lines (truncated-partial-width-window-p))))
;; Under line-move-visual, goal-column should be
;; interpreted in units of the frame's canonical character