From: Eli Zaretskii Date: Thu, 22 Aug 2024 14:29:46 +0000 (+0300) Subject: Fix C-n/C-p under both 'line-prefix' and 'visual-line-mode' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8466c6e17bd0d4f95d002c36e8f733dbbbb57380;p=emacs.git Fix C-n/C-p under both 'line-prefix' and 'visual-line-mode' * lisp/simple.el (line-move-finish): Use 'truncated-partial-width-window-p' to query whether partial-width lines are actually truncated on display. (Bug#72420) (cherry picked from commit 44e3eceeb0ff37aa17f7090d04d2263fb32253a7) --- diff --git a/lisp/simple.el b/lisp/simple.el index d7c545263c9..e328409c6ae 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8071,7 +8071,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 (or truncate-lines truncate-partial-width-windows))) + (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 ;; width, which is exactly what vertical-motion does.