From f6816a659c61d26d2d3328f34e43280b4ae1cf09 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 18 May 2017 22:54:35 +0300 Subject: [PATCH] Fix last change in line-move-finish * lisp/simple.el (line-move-finish): Fix last change. This corrects a regression in C-n and C-p when lines are truncated, introduced by the change in 2017-05-10. --- lisp/simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index dfa30372dda..7f13df5006d 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6399,7 +6399,8 @@ If NOERROR, don't signal an error if we can't move that many lines." (point)))) ;; Move to the desired column. - (if line-move-visual + (if (and line-move-visual + (not (or truncate-lines truncate-partial-width-windows))) ;; 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. -- 2.39.2