[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 44e3eceeb0f: Fix C-n/C-p under both 'line-prefix' and 'visual-lin
From: |
Eli Zaretskii |
Subject: |
master 44e3eceeb0f: Fix C-n/C-p under both 'line-prefix' and 'visual-line-mode' |
Date: |
Thu, 22 Aug 2024 10:31:04 -0400 (EDT) |
branch: master
commit 44e3eceeb0ff37aa17f7090d04d2263fb32253a7
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
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)
---
lisp/simple.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index a9f8b5845d8..1d3be2b1eaf 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -8200,7 +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 (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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 44e3eceeb0f: Fix C-n/C-p under both 'line-prefix' and 'visual-line-mode',
Eli Zaretskii <=