emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117354: Fix bug #17944 with pos-visible-in-windo


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-24 r117354: Fix bug #17944 with pos-visible-in-window-p when there's image at window start.
Date: Sat, 05 Jul 2014 09:55:29 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117354
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/17944
committer: Eli Zaretskii <address@hidden>
branch nick: emacs-24
timestamp: Sat 2014-07-05 12:53:50 +0300
message:
  Fix bug #17944 with pos-visible-in-window-p when there's image at window 
start.
  
   src/xdisp.c (pos_visible_p):         Fix condition for finding CHARPOS by the
   first call to move_it_to.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/xdisp.c                    xdisp.c-20091113204419-o5vbwnq5f7feedwu-240
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-07-05 08:24:07 +0000
+++ b/src/ChangeLog     2014-07-05 09:53:50 +0000
@@ -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  <address@hidden>
 

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2014-07-05 08:24:07 +0000
+++ b/src/xdisp.c       2014-07-05 09:53:50 +0000
@@ -1436,7 +1436,7 @@
              (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]