# HG changeset patch # User Eli Zaretskii # Date 1273934635 -10800 # Node ID 178b4c78d882a882a5f824403c0ff401b9f853cd # Parent c868ea5f74639ebcc3b5308b6e549291f5acbab8 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. diff -r c868ea5f7463 -r 178b4c78d882 src/ChangeLog --- a/src/ChangeLog Sat May 15 17:06:58 2010 +0300 +++ b/src/ChangeLog Sat May 15 17:43:55 2010 +0300 @@ -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. diff -r c868ea5f7463 -r 178b4c78d882 src/bidi.c --- a/src/bidi.c Sat May 15 17:06:58 2010 +0300 +++ b/src/bidi.c Sat May 15 17:43:55 2010 +0300 @@ -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);