Commit b67e356c authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(x_draw_composite_glyph_string_foreground): Don't

increment s->gidx for TAB.
parent dc3b443f
...@@ -1501,7 +1501,7 @@ x_draw_composite_glyph_string_foreground (s) ...@@ -1501,7 +1501,7 @@ x_draw_composite_glyph_string_foreground (s)
} }
else 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') if (COMPOSITION_GLYPH (s->cmp, s->gidx) != '\t')
{ {
int xx = x + s->cmp->offsets[s->gidx * 2]; int xx = x + s->cmp->offsets[s->gidx * 2];
...@@ -1510,6 +1510,7 @@ x_draw_composite_glyph_string_foreground (s) ...@@ -1510,6 +1510,7 @@ x_draw_composite_glyph_string_foreground (s)
font->driver->draw (s, s->gidx, s->gidx + 1, xx, yy, 0); font->driver->draw (s, s->gidx, s->gidx + 1, xx, yy, 0);
if (s->face->overstrike) if (s->face->overstrike)
font->driver->draw (s, s->gidx, s->gidx + 1, xx + 1, yy, 0); font->driver->draw (s, s->gidx, s->gidx + 1, xx + 1, yy, 0);
s->gidx++;
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment