src/xdisp.c (pos_visible_p): Fix condition for finding CHARPOS by the
first call to move_it_to.
* xdisp.c (pos_visible_p): If CHARPOS is at beginning of window,
and there is a display property at that position, don't call
move_it_to to move to a position before window start. (Bug#17942)
+ Fix condition for finding CHARPOS by the first call to move_it_to.
+ (Bug#17944)
2014-07-05 Stefan Monnier <monnier@iro.umontreal.ca>
(charpos >= 0 ? MOVE_TO_POS : 0) | MOVE_TO_Y);
if (charpos >= 0
- && (((!it.bidi_p || it.bidi_it.scan_dir == 1)
+ && (((!it.bidi_p || it.bidi_it.scan_dir != -1)
&& IT_CHARPOS (it) >= charpos)
/* When scanning backwards under bidi iteration, move_it_to
stops at or _before_ CHARPOS, because it stops at or to