Fix pos-visible-in-window-p under bidi redisplay when lines are truncated.
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:42:24 +0000 (13:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:42:24 +0000 (13:42 +0300)
commitc1734fbd6fa365e362c600b7b94c40b13401c255
tree13ca21188a81d26cf89e9ddb1ac6a4f929f11fca
parentb6d5a68964e812af176a6217882add25703914b2
Fix pos-visible-in-window-p under bidi redisplay when lines are truncated.

 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 when exact match is
 impossible due to invisible text, and the lines are truncated.
src/ChangeLog
src/xdisp.c