[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master f6816a6: Fix last change in line-move-finish
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master f6816a6: Fix last change in line-move-finish |
Date: |
Thu, 18 May 2017 15:56:28 -0400 (EDT) |
branch: master
commit f6816a659c61d26d2d3328f34e43280b4ae1cf09
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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 dfa3037..7f13df5 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master f6816a6: Fix last change in line-move-finish,
Eli Zaretskii <=