From: Eli Zaretskii Date: Wed, 18 Aug 2021 13:01:57 +0000 (+0300) Subject: Fix abort when turning on Hebrew or Arabic input methods X-Git-Tag: emacs-28.0.90~1454 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf4f7388b6d0373d239b0aeedcc1a77549371320;p=emacs.git Fix abort when turning on Hebrew or Arabic input methods * src/xdisp.c (face_before_or_after_it_pos): Add the missing initialization of the bidi scan direction. (Bug#50107) --- diff --git a/src/xdisp.c b/src/xdisp.c index 3b7ed2be203..ceb0fa7e64d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4601,6 +4601,7 @@ face_before_or_after_it_pos (struct it *it, bool before_p) SAVE_IT (it_copy, *it, it_copy_data); IT_STRING_CHARPOS (it_copy) = 0; bidi_init_it (0, 0, FRAME_WINDOW_P (it_copy.f), &it_copy.bidi_it); + it_copy.bidi_it.scan_dir = 0; do {