emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r100305: Avoid crashes when stepping


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100305: Avoid crashes when stepping with right-arrow through "^L^L".
Date: Sat, 15 May 2010 17:43:55 +0300
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100305
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2010-05-15 17:43:55 +0300
message:
  Avoid crashes when stepping with right-arrow through "^L^L".
  
   bidi.c (bidi_paragraph_init): Remove redundant assertion that we are at
   the beginning of a line after call to bidi_find_paragraph_start.
modified:
  src/ChangeLog
  src/bidi.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-05-15 13:23:48 +0000
+++ b/src/ChangeLog     2010-05-15 14:43:55 +0000
@@ -2,6 +2,8 @@
 
        * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
        of bidi_it->paragraph_dir.  Call bidi_initialize if needed.
+       (bidi_paragraph_init): Remove redundant assertion that we are at
+       the beginning of a line after call to bidi_find_paragraph_start.
 
        * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
        (syms_of_xdisp): Defsubr it.

=== modified file 'src/bidi.c'
--- a/src/bidi.c        2010-05-15 13:23:48 +0000
+++ b/src/bidi.c        2010-05-15 14:43:55 +0000
@@ -916,11 +916,6 @@
         middle of it.  Find where this paragraph starts.  */
       bytepos = bidi_find_paragraph_start (pos, bytepos);
 
-      /* We should always be at the beginning of a new line at this
-        point.  */
-      if (!(bytepos == BEGV_BYTE || FETCH_CHAR (bytepos - 1) == '\n'))
-       abort ();
-
       bidi_it->separator_limit = -1;
       bidi_it->new_paragraph = 0;
       ch = FETCH_CHAR (bytepos);


reply via email to

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