]> git.eshelyaron.com Git - emacs.git/commitdiff
xdisp.c (pop_it): Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Fri, 23 Apr 2010 15:24:39 +0000 (18:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 23 Apr 2010 15:24:39 +0000 (18:24 +0300)
src/xdisp.c

index e68c4f6f2929dedf96f105c40fb51d718037d4a1..86d6b75e187c825e3e59a5e0ee14c5a6cd11ded8 100644 (file)
@@ -5309,7 +5309,7 @@ pop_it (it)
             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