From: Eli Zaretskii Date: Tue, 15 May 2012 16:17:42 +0000 (+0300) Subject: Fix the changes in 2012-04-22T13:58:00Z!cyd@gnu.org for bug #11464. X-Git-Tag: emacs-24.0.97~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ccbf309ce0aa34ef55405945ed29db41250aa34e;p=emacs.git Fix the changes in 2012-04-22T13:58:00Z!cyd@gnu.org for bug #11464. src/xdisp.c (pos_visible_p): Fix last change. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2f3643f4f80..2a7f8e2958f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-05-15 Eli Zaretskii + + * xdisp.c (pos_visible_p): Fix last change. (Bug#11464) + 2012-05-13 Eli Zaretskii * xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we diff --git a/src/xdisp.c b/src/xdisp.c index a2c4589766d..e8253c714e3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1313,7 +1313,7 @@ pos_visible_p (struct window *w, EMACS_INT charpos, int *x, int *y, visible_p = bottom_y > window_top_y; else if (top_y < it.last_visible_y) visible_p = 1; - if (bottom_y >= it.last_visible_y + if (bottom_y <= it.last_visible_y && it.bidi_p && it.bidi_it.scan_dir == -1 && IT_CHARPOS (it) < charpos) {