aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2010-08-30 09:32:29 +0900
committerKenichi Handa2010-08-30 09:32:29 +0900
commit49a752bbf9065bae75aba1f1cea1ae8d6132438a (patch)
tree759118424455049724cdb6cf1386ec1f5d192443 /src
parent96ae4c8fa704b0385d6f2cf10b69bf289e2fb7ef (diff)
downloademacs-49a752bbf9065bae75aba1f1cea1ae8d6132438a.tar.gz
emacs-49a752bbf9065bae75aba1f1cea1ae8d6132438a.zip
composite.c (composition_update_it): Fix computing of cmp_it->width.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/composite.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b58557a944e..4e4f96786d9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-08-30 Kenichi Handa <handa@m17n.org>
2
3 * composite.c (composition_update_it): Fix computing of
4 cmp_it->width.
5
12010-08-29 Jan Djärv <jan.h.d@swipnet.se> 62010-08-29 Jan Djärv <jan.h.d@swipnet.se>
2 7
3 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L. 8 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
diff --git a/src/composite.c b/src/composite.c
index 233f9ac8969..96474f43fab 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1440,8 +1440,7 @@ composition_update_it (struct composition_it *cmp_it, EMACS_INT charpos, EMACS_I
1440 { 1440 {
1441 c = XINT (LGSTRING_CHAR (gstring, i)); 1441 c = XINT (LGSTRING_CHAR (gstring, i));
1442 cmp_it->nbytes += CHAR_BYTES (c); 1442 cmp_it->nbytes += CHAR_BYTES (c);
1443 cmp_it->width = (LGLYPH_WIDTH (glyph) > 0 1443 cmp_it->width += LGLYPH_WIDTH (glyph) > 0 ? CHAR_WIDTH (c) : 0;
1444 ? CHAR_WIDTH (LGLYPH_CHAR (glyph)) : 0);
1445 } 1444 }
1446 } 1445 }
1447 return c; 1446 return c;