]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change in src /composite.c.
authorEli Zaretskii <eliz@gnu.org>
Wed, 2 Jan 2019 16:00:46 +0000 (18:00 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 2 Jan 2019 16:00:46 +0000 (18:00 +0200)
src/composite.c

index 7cb97934a20ac584c2c61d96599b94e94ce31b6c..77bb79a0cfe44b8b23a4890a55a21d345e2c8a05 100644 (file)
@@ -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))