diff options
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/src/ChangeLog b/src/ChangeLog index a3210b557c7..89621bd54ec 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,8 @@  	* 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> diff --git a/src/xdisp.c b/src/xdisp.c index f49710b21e5..913b57ed44b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1436,7 +1436,7 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,  	      (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 | 
