diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-01-02 18:00:46 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-01-02 18:00:46 +0200 |
commit | f7ccac9f9d82019d4d5ba3182200422fbc9c7e67 (patch) | |
tree | 0714b4ee8e327e5020e7e3ec2cb5fa3e537ea81d /src | |
parent | 1cef2d7cbea407eaeff5c65e9594e03fabe3bf5e (diff) | |
download | emacs-f7ccac9f9d82019d4d5ba3182200422fbc9c7e67.tar.gz |
; Fix last change in src /composite.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/composite.c | 8 |
1 files 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)) |