diff options
| author | Eli Zaretskii | 2024-08-22 17:29:46 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-22 17:29:46 +0300 |
| commit | 44e3eceeb0ff37aa17f7090d04d2263fb32253a7 (patch) | |
| tree | 85daf1a0b206d4decf951e9cca0b210c356b43b3 | |
| parent | 3d1d4f109ed4115256a08c74eeb704259d91c9f4 (diff) | |
| download | emacs-44e3eceeb0ff37aa17f7090d04d2263fb32253a7.tar.gz emacs-44e3eceeb0ff37aa17f7090d04d2263fb32253a7.zip | |
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)
| -rw-r--r-- | lisp/simple.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 8200 | 8200 | ||
| 8201 | ;; Move to the desired column. | 8201 | ;; Move to the desired column. |
| 8202 | (if (and line-move-visual | 8202 | (if (and line-move-visual |
| 8203 | (not (or truncate-lines truncate-partial-width-windows))) | 8203 | (not (or truncate-lines (truncated-partial-width-window-p)))) |
| 8204 | ;; Under line-move-visual, goal-column should be | 8204 | ;; Under line-move-visual, goal-column should be |
| 8205 | ;; interpreted in units of the frame's canonical character | 8205 | ;; interpreted in units of the frame's canonical character |
| 8206 | ;; width, which is exactly what vertical-motion does. | 8206 | ;; width, which is exactly what vertical-motion does. |