Fix the changes in 2012-04-22T13:58:00Z!cyd@gnu.org for bug #11464.
authorEli Zaretskii <eliz@gnu.org>
Tue, 15 May 2012 16:17:42 +0000 (19:17 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 15 May 2012 16:17:42 +0000 (19:17 +0300)
 src/xdisp.c (pos_visible_p): Fix last change.

src/ChangeLog
src/xdisp.c

index 2f3643f..2a7f8e2 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-15  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (pos_visible_p): Fix last change.  (Bug#11464)
+
 2012-05-13  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we
index a2c4589..e8253c7 100644 (file)
@@ -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)
        {