--- rxvt-unicode/src/rxvtfont.C 2006/01/09 07:35:07 1.82 +++ rxvt-unicode/src/rxvtfont.C 2006/01/09 07:35:23 1.83 @@ -1271,12 +1271,12 @@ const text_t *text, int len, int fg, int bg) { - clear_rect (d, x, y, r->fwidth * len, r->fheight, bg); - XGlyphInfo extents; XftGlyphSpec *enc = (XftGlyphSpec *)get_enc_buf (len * sizeof (XftGlyphSpec)); XftGlyphSpec *ep = enc; + clear_rect (d, x, y, r->fwidth * len, r->fheight, bg); + // cut trailing spaces while (len && text [len - 1] == ' ') len--;