From ccbf309ce0aa34ef55405945ed29db41250aa34e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 15 May 2012 19:17:42 +0300 Subject: [PATCH] Fix the changes in 2012-04-22T13:58:00Z!cyd@gnu.org for bug #11464. src/xdisp.c (pos_visible_p): Fix last change. --- src/ChangeLog | 4 ++++ src/xdisp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.39.2