summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-04-23 18:24:39 +0300
committerEli Zaretskii <eliz@gnu.org>2010-04-23 18:24:39 +0300
commit706a0137ff6a830879ee24e5ad030c8e448db9b0 (patch)
treece71ddff6692b034859812f34823a40e9668ad03
parentf1bbc65578cd055f4107f0117e6c317b45bc5b33 (diff)
downloademacs-706a0137ff6a830879ee24e5ad030c8e448db9b0.tar.gz
emacs-706a0137ff6a830879ee24e5ad030c8e448db9b0.tar.bz2
emacs-706a0137ff6a830879ee24e5ad030c8e448db9b0.zip
xdisp.c (pop_it): Fix last change.
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index e68c4f6f292..86d6b75e187 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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