Fix pos-visible-in-window-p under bidi redisplay.
commita9269c187774dea6e939066a79901f23ae79641f
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:46:21 +0000 (23 13:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:46:21 +0000 (23 13:46 +0300)
tree4b953aeb0d2e8813dbde87efab905f7a279ce0ae
parenta258d62771e02f425e93886428a768424062076f
parentc1734fbd6fa365e362c600b7b94c40b13401c255
Fix pos-visible-in-window-p under bidi redisplay.

 src/xdisp.c (move_it_in_display_line_to): Record the best matching
 position for TO_CHARPOS while scanning the line, and restore it on
 exit if none of the characters scanned was an exact match.  Fixes
 vertical-motion and pos-visible-in-window-p under bidi redisplay
 when exact match is impossible due to invisible text, and the
 lines are truncated.
src/ChangeLog
src/xdisp.c