# HG changeset patch # User Eli Zaretskii # Date 1272036279 -10800 # Node ID 33a95d8ffa433739b67de94dada67980885b5e02 # Parent 78e19c1359819b6f2a09a08ac627b1a6722e7d44 xdisp.c (pop_it): Fix last change. diff -r 78e19c135981 -r 33a95d8ffa43 src/xdisp.c --- a/src/xdisp.c Fri Apr 23 18:09:11 2010 +0300 +++ b/src/xdisp.c Fri Apr 23 18:24:39 2010 +0300 @@ -5309,7 +5309,7 @@ determine the paragraph base direction if the overlay we just processed is at the beginning of a new paragraph. */ - if (it->bidi_it.first_elt) + if (it->bidi_it.first_elt && it->bidi_it.charpos < ZV) bidi_paragraph_init (it->paragraph_embedding, &it->bidi_it); /* prev_stop can be zero, so check against BEGV as well. */ while (it->bidi_it.charpos >= BEGV