aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-09-10 01:36:19 +0000
committerKenichi Handa2008-09-10 01:36:19 +0000
commit44566dc7f2c4d9881b614541ce19398b745659cd (patch)
tree2fef3d6781436b3f9fb9a9ea7c8b8de5dd44fe97 /src
parent1ae03cd5dd984877f8282e67d0f345413219b7f3 (diff)
downloademacs-44566dc7f2c4d9881b614541ce19398b745659cd.tar.gz
emacs-44566dc7f2c4d9881b614541ce19398b745659cd.zip
(composition_compute_stop_pos): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/composite.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/composite.c b/src/composite.c
index eea2f9661b4..be9871eef39 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1000,6 +1000,7 @@ composition_compute_stop_pos (cmp_it, charpos, bytepos, endpos, string)
1000 if (endpos > charpos + MAX_NEWLINE_DISTANCE) 1000 if (endpos > charpos + MAX_NEWLINE_DISTANCE)
1001 endpos = charpos + MAX_NEWLINE_DISTANCE; 1001 endpos = charpos + MAX_NEWLINE_DISTANCE;
1002 cmp_it->stop_pos = endpos; 1002 cmp_it->stop_pos = endpos;
1003 cmp_it->ch = -2;
1003 if (find_composition (charpos, endpos, &start, &end, &prop, string) 1004 if (find_composition (charpos, endpos, &start, &end, &prop, string)
1004 && COMPOSITION_VALID_P (start, end, prop)) 1005 && COMPOSITION_VALID_P (start, end, prop))
1005 { 1006 {
@@ -1043,15 +1044,12 @@ composition_compute_stop_pos (cmp_it, charpos, bytepos, endpos, string)
1043 cmp_it->lookback = XFASTINT (AREF (elt, 1)); 1044 cmp_it->lookback = XFASTINT (AREF (elt, 1));
1044 cmp_it->stop_pos = charpos - 1 - cmp_it->lookback; 1045 cmp_it->stop_pos = charpos - 1 - cmp_it->lookback;
1045 cmp_it->ch = c; 1046 cmp_it->ch = c;
1046 break; 1047 return;
1047 } 1048 }
1048 } 1049 }
1049 } 1050 }
1050 if (charpos == endpos) 1051 cmp_it->stop_pos = charpos;
1051 { 1052 cmp_it->ch = -2;
1052 cmp_it->stop_pos = endpos;
1053 cmp_it->ch = -2;
1054 }
1055} 1053}
1056 1054
1057/* Check if the character at CHARPOS (and BYTEPOS) is composed 1055/* Check if the character at CHARPOS (and BYTEPOS) is composed