summaryrefslogtreecommitdiff
path: root/src/composite.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-09-10 12:02:20 +0000
committerKenichi Handa <handa@m17n.org>2008-09-10 12:02:20 +0000
commitdf77b5e0d6a2a1d9ed2b52df0b93c3fc18ec3519 (patch)
tree1464c770d3f365f799cd9eda5e2098ded1c0750d /src/composite.c
parent4d8f0cdef4396a867a1890d2ee7df83753cf132a (diff)
downloademacs-df77b5e0d6a2a1d9ed2b52df0b93c3fc18ec3519.tar.gz
(composition_compute_stop_pos): Reset cmp_it->id to -1 at first.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/composite.c b/src/composite.c
index be9871eef39..92e7a1e44cb 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1000,6 +1000,7 @@ composition_compute_stop_pos (cmp_it, charpos, bytepos, endpos, string)
if (endpos > charpos + MAX_NEWLINE_DISTANCE)
endpos = charpos + MAX_NEWLINE_DISTANCE;
cmp_it->stop_pos = endpos;
+ cmp_it->id = -1;
cmp_it->ch = -2;
if (find_composition (charpos, endpos, &start, &end, &prop, string)
&& COMPOSITION_VALID_P (start, end, prop))