src/bidi.c (bidi_init_it): Don't initialize paragraph_dir here, as
some callers set that themselves.
src/xdisp.c (Fcurrent_bidi_paragraph_direction): Initialize
itb.paragraph_dir to NEUTRAL_DIR. Fixes an occasional incorrect
cursor motion with <left> and <right> arrow keys.
+2011-10-13 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (Fcurrent_bidi_paragraph_direction): Initialize
+ itb.paragraph_dir to NEUTRAL_DIR. Fixes an occasional incorrect
+ cursor motion with <left> and <right> arrow keys.
+
+ * bidi.c (bidi_init_it): Don't initialize paragraph_dir here, as
+ some callers set that themselves.
+
2011-10-12 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (find_row_edges): Handle the case where ROW comes from a
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;
bytepos--;
}
bidi_init_it (pos, bytepos, FRAME_WINDOW_P (SELECTED_FRAME ()), &itb);
+ itb.paragraph_dir = NEUTRAL_DIR;
itb.string.s = NULL;
itb.string.lstring = Qnil;
itb.string.bufpos = 0;