aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2007-02-20 11:02:20 +0000
committerKenichi Handa2007-02-20 11:02:20 +0000
commitb67e356c0473562288a39094206db78f71be9c42 (patch)
tree83910ba59090a4bedd64dba2ae9e1b6c5d08b3e1 /src
parentdc3b443f5775c7957359fa0a47af8656e5fba4f7 (diff)
downloademacs-b67e356c0473562288a39094206db78f71be9c42.tar.gz
emacs-b67e356c0473562288a39094206db78f71be9c42.zip
(x_draw_composite_glyph_string_foreground): Don't
increment s->gidx for TAB.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index e795d22cee9..89fe463e6d1 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1501,7 +1501,7 @@ x_draw_composite_glyph_string_foreground (s)
1501 } 1501 }
1502 else 1502 else
1503 { 1503 {
1504 for (i = 0; i < s->nchars; i++, ++s->gidx) 1504 for (i = 0; i < s->nchars; i++)
1505 if (COMPOSITION_GLYPH (s->cmp, s->gidx) != '\t') 1505 if (COMPOSITION_GLYPH (s->cmp, s->gidx) != '\t')
1506 { 1506 {
1507 int xx = x + s->cmp->offsets[s->gidx * 2]; 1507 int xx = x + s->cmp->offsets[s->gidx * 2];
@@ -1510,6 +1510,7 @@ x_draw_composite_glyph_string_foreground (s)
1510 font->driver->draw (s, s->gidx, s->gidx + 1, xx, yy, 0); 1510 font->driver->draw (s, s->gidx, s->gidx + 1, xx, yy, 0);
1511 if (s->face->overstrike) 1511 if (s->face->overstrike)
1512 font->driver->draw (s, s->gidx, s->gidx + 1, xx + 1, yy, 0); 1512 font->driver->draw (s, s->gidx, s->gidx + 1, xx + 1, yy, 0);
1513 s->gidx++;
1513 } 1514 }
1514 } 1515 }
1515 } 1516 }