From: Eli Zaretskii Date: Wed, 12 Oct 2011 11:32:41 +0000 (+0200) Subject: src/bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR. X-Git-Tag: emacs-pretest-24.0.91~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0074aef2275e06a767e75cc1b87d22cd7e47cd36;p=emacs.git src/bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5dc440d0430..3c101365965 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-10-12 Eli Zaretskii + + * bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR. + 2011-10-12 Dmitry Antipov * alloc.c (Fgc_status): Do not access beyond zombies array diff --git a/src/bidi.c b/src/bidi.c index e3fc03f4a9b..2c312b14a10 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -808,6 +808,7 @@ bidi_init_it (EMACS_INT charpos, EMACS_INT bytepos, int frame_window_p, bidi_it->nchars = -1; /* to be computed in bidi_resolve_explicit_1 */ bidi_it->first_elt = 1; bidi_set_paragraph_end (bidi_it); + bidi_it->paragraph_dir = NEUTRAL_DIR; bidi_it->new_paragraph = 1; bidi_it->separator_limit = -1; bidi_it->type = NEUTRAL_B;