mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
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)
This commit is contained in:
parent
3d1d4f109e
commit
44e3eceeb0
1 changed files with 1 additions and 1 deletions
|
|
@ -8200,7 +8200,7 @@ If NOERROR, don't signal an error if we can't move that many lines."
|
||||||
|
|
||||||
;; Move to the desired column.
|
;; Move to the desired column.
|
||||||
(if (and line-move-visual
|
(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
|
;; Under line-move-visual, goal-column should be
|
||||||
;; interpreted in units of the frame's canonical character
|
;; interpreted in units of the frame's canonical character
|
||||||
;; width, which is exactly what vertical-motion does.
|
;; width, which is exactly what vertical-motion does.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue