From: Eli Zaretskii Date: Wed, 13 Apr 2011 17:41:04 +0000 (+0300) Subject: Fix bug #8487 with invisible property near EOB under bidi. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~290^2~7^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a6744a352fc06e9a303264d64a904596475fe2d1;p=emacs.git Fix bug #8487 with invisible property near EOB under bidi. src/xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init when at ZV. --- diff --git a/src/ChangeLog b/src/ChangeLog index c164c6b5f58..4c564d214de 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-04-13 Eli Zaretskii + + * xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init + when at ZV. (Bug#8487) + 2011-04-11 Eli Zaretskii * xdisp.c (redisplay_window): Don't try to determine the character diff --git a/src/xdisp.c b/src/xdisp.c index 2b032bd6597..1cf58edc4c6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3661,7 +3661,7 @@ handle_invisible_prop (struct it *it) _after_ bidi iteration avoids affecting the visual order of the displayed text when invisible properties are added or removed. */ - if (it->bidi_it.first_elt) + if (it->bidi_it.first_elt && it->bidi_it.charpos < ZV) { /* If we were `reseat'ed to a new paragraph, determine the paragraph base direction. We need