# HG changeset patch # User Kenichi Handa # Date 1171969340 0 # Node ID 429fb762384ad8e9fe72aa367b8335a5bfbee916 # Parent 4ef338cf447809d1f8f0254505ac3c987abbb211 (x_draw_composite_glyph_string_foreground): Don't increment s->gidx for TAB. diff -r 4ef338cf4478 -r 429fb762384a src/xterm.c --- a/src/xterm.c Fri Feb 16 13:39:34 2007 +0000 +++ b/src/xterm.c Tue Feb 20 11:02:20 2007 +0000 @@ -1501,7 +1501,7 @@ } else { - for (i = 0; i < s->nchars; i++, ++s->gidx) + for (i = 0; i < s->nchars; i++) if (COMPOSITION_GLYPH (s->cmp, s->gidx) != '\t') { int xx = x + s->cmp->offsets[s->gidx * 2]; @@ -1510,6 +1510,7 @@ font->driver->draw (s, s->gidx, s->gidx + 1, xx, yy, 0); if (s->face->overstrike) font->driver->draw (s, s->gidx, s->gidx + 1, xx + 1, yy, 0); + s->gidx++; } } }