aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/composite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/composite.c b/src/composite.c
index b688c4bbde1..ea6b3708f12 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -366,7 +366,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string)
366 float leftmost = 0.0, rightmost; 366 float leftmost = 0.0, rightmost;
367 367
368 ch = XINT (key_contents[0]); 368 ch = XINT (key_contents[0]);
369 rightmost = CHAR_WIDTH (ch); 369 rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1;
370 370
371 for (i = 1; i < glyph_len; i += 2) 371 for (i = 1; i < glyph_len; i += 2)
372 { 372 {
@@ -376,7 +376,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string)
376 376
377 rule = XINT (key_contents[i]); 377 rule = XINT (key_contents[i]);
378 ch = XINT (key_contents[i + 1]); 378 ch = XINT (key_contents[i + 1]);
379 this_width = CHAR_WIDTH (ch); 379 this_width = ch != '\t' ? CHAR_WIDTH (ch) : 1;
380 380
381 /* A composition rule is specified by an integer value 381 /* A composition rule is specified by an integer value
382 that encodes global and new reference points (GREF and 382 that encodes global and new reference points (GREF and