emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r105681: Fix a crash in vertical-moti


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105681: Fix a crash in vertical-motion.
Date: Wed, 07 Sep 2011 21:14:26 +0300
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105681
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Wed 2011-09-07 21:14:26 +0300
message:
  Fix a crash in vertical-motion.
  
   src/xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it
   only under bidi iteration.
modified:
  build-aux/move-if-change*
  src/ChangeLog
  src/xdisp.c
=== modified file 'build-aux/move-if-change' (properties changed: +x to -x)
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-09-07 17:25:24 +0000
+++ b/src/ChangeLog     2011-09-07 18:14:26 +0000
@@ -1,3 +1,8 @@
+2011-09-07  Eli Zaretskii  <address@hidden>
+
+       * xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it
+       only under bidi iteration.
+
 2011-09-07  Jan Djärv  <address@hidden>
 
        * gtkutil.c (xg_make_tool_item): Insert comment about eventbox.

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2011-09-04 18:48:35 +0000
+++ b/src/xdisp.c       2011-09-07 18:14:26 +0000
@@ -8116,7 +8116,8 @@
                      && !saw_smaller_pos
                      && IT_CHARPOS (*it) > to_charpos))
                {
-                 if (!at_eob_p && IT_CHARPOS (ppos_it) < ZV)
+                 if (it->bidi_p
+                     && !at_eob_p && IT_CHARPOS (ppos_it) < ZV)
                    RESTORE_IT (it, &ppos_it, ppos_data);
                  result = MOVE_POS_MATCH_OR_ZV;
                  break;


reply via email to

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