]> git.eshelyaron.com Git - emacs.git/commit
Fix line-move-visual's following of column in R2L lines (backport from trunk).
authorEli Zaretskii <eliz@gnu.org>
Thu, 8 Jan 2015 14:04:46 +0000 (16:04 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 9 Jan 2015 09:06:18 +0000 (11:06 +0200)
commit7c0bfa1d0803d824e3adaf9c6431997580771ef6
treefda2be0d3c305debeaba26f242830141d4444709
parent2a57b7e5b42175031efb8b4348638a05cb1c52a2
Fix line-move-visual's following of column in R2L lines (backport from trunk).

 src/simple.el (line-move-visual): When converting X pixel coordinate
 to temporary-goal-column, adjust the value for right-to-left
 screen lines.  This fixes vertical-motion, next/prev-line, etc.

 src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
 returned for right-to-left screen lines.  (Before the change on
 2014-12-30, the incorrectly-computed X pixel coordinate concealed
 this bug.)

(cherry picked from commit 5fbd17e369ca30a47ab8a2eda0b2f2ea9b690bb4)

Conflicts:
lisp/simple.el
lisp/ChangeLog
lisp/simple.el
src/ChangeLog
src/dispnew.c