From bf4f7388b6d0373d239b0aeedcc1a77549371320 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 18 Aug 2021 16:01:57 +0300 Subject: [PATCH] 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) --- src/xdisp.c | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.39.2