From f7ccac9f9d82019d4d5ba3182200422fbc9c7e67 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 2 Jan 2019 18:00:46 +0200 Subject: [PATCH] ; Fix last change in src /composite.c. --- src/composite.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/composite.c b/src/composite.c index 7cb97934a20..77bb79a0cfe 100644 --- a/src/composite.c +++ b/src/composite.c @@ -1215,6 +1215,10 @@ composition_reseat_it (struct composition_it *cmp_it, ptrdiff_t charpos, continue; if (charpos < endpos) { + if (pdir == L2R) + direction = QL2R; + else if (pdir == R2L) + direction = QR2L; for (; CONSP (val); val = XCDR (val)) { elt = XCAR (val); @@ -1223,10 +1227,6 @@ composition_reseat_it (struct composition_it *cmp_it, ptrdiff_t charpos, continue; if (XFIXNAT (AREF (elt, 1)) != cmp_it->lookback) goto no_composition; - if (pdir == L2R) - direction = QL2R; - else if (pdir == R2L) - direction = QR2L; lgstring = autocmp_chars (elt, charpos, bytepos, endpos, w, face, string, direction); if (composition_gstring_p (lgstring)) -- 2.39.2