Mercurial > emacs
changeset 90769:429fb762384a
(x_draw_composite_glyph_string_foreground): Don't
increment s->gidx for TAB.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 20 Feb 2007 11:02:20 +0000 |
parents | 4ef338cf4478 |
children | 4a4222f7a38d |
files | src/xterm.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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++; } } }