• Eli Zaretskii's avatar
    Fix cursor movement by 'next-logical-line' after 'next-line' · e5ab25de
    Eli Zaretskii authored
    * 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)
    e5ab25de
simple.el 361 KB