Fix regression with cursor motion in Magit buffers
* lisp/simple.el (line-move): Condition movement optimizations on presence of very long lines. (Bug#57433)
This commit is contained in:
parent
6b1ed2f2c9
commit
a2d62456a7
1 changed files with 9 additions and 7 deletions
|
@ -7717,13 +7717,15 @@ not vscroll."
|
|||
(not goal-column)
|
||||
;; Lines aren't truncated.
|
||||
(not
|
||||
(or truncate-lines
|
||||
(and (integerp truncate-partial-width-windows)
|
||||
(< (window-width)
|
||||
truncate-partial-width-windows))
|
||||
(and truncate-partial-width-windows
|
||||
(not (integerp truncate-partial-width-windows))
|
||||
(not (window-full-width-p)))))
|
||||
(and
|
||||
(or truncate-lines
|
||||
(and (integerp truncate-partial-width-windows)
|
||||
(< (window-total-width)
|
||||
truncate-partial-width-windows))
|
||||
(and truncate-partial-width-windows
|
||||
(not (integerp truncate-partial-width-windows))
|
||||
(not (window-full-width-p))))
|
||||
(long-line-optimizations-p)))
|
||||
;; When the text in the window is scrolled to the left,
|
||||
;; display-based motion doesn't make sense (because each
|
||||
;; logical line occupies exactly one screen line).
|
||||
|
|
Loading…
Add table
Reference in a new issue