]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid crashes when stepping with right-arrow through "^L^L".
authorEli Zaretskii <eliz@gnu.org>
Sat, 15 May 2010 14:43:55 +0000 (17:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 15 May 2010 14:43:55 +0000 (17:43 +0300)
 bidi.c (bidi_paragraph_init): Remove redundant assertion that we are at
 the beginning of a line after call to bidi_find_paragraph_start.

src/ChangeLog
src/bidi.c

index 32413ae11c3ed795c46b5de039bf00ae101302bc..30bd78e208ce6c2d1a2c25654cd272af979c4764 100644 (file)
@@ -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.
index 6939e51159f7e88e6b5ccfeca91561fe279f649b..dbc95608fea785fe100dbe05266e196f85d398fd 100644 (file)
@@ -916,11 +916,6 @@ bidi_paragraph_init (bidi_dir_t dir, struct bidi_it *bidi_it)
         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);