]> git.eshelyaron.com Git - emacs.git/commit
Fix cursor movement by 'next-logical-line' after 'next-line'
authorEli Zaretskii <eliz@gnu.org>
Wed, 6 Jun 2018 15:28:44 +0000 (18:28 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 6 Jun 2018 15:28:44 +0000 (18:28 +0300)
commite5ab25deaeb5daf58d2e3b0c990cd67e6020bb38
tree581e449920bba48915918905bd040926868c65e1
parentd20beef5f104909f765430e347f5f3711ea51149
Fix cursor movement by 'next-logical-line' after 'next-line'

* src/indent.c (Fvertical_motion): Adjust TO_X when line-numbers
are being displayed.  Remove unneeded "correction" of TO_X at the
goal line.

* lisp/simple.el (last--line-number-width): Remove unneeded
variable.
(line-move-visual): Account for line-number display width by
adjusting the pixel X coordinate that gets converted into
canonical columns passed to vertical-motion, instead of adjusting
temporary-goal-column (which then affects next commands, including
next-logical-line).  (Bug#31723)
lisp/simple.el
src/indent.c