diff options
author | Anselm R Garbe | 2008-08-18 10:16:36 +0100 |
---|---|---|
committer | Anselm R Garbe | 2008-08-18 10:16:36 +0100 |
commit | 4662a1a2257c6093389653eab2dcbd2c249ac047 (patch) | |
tree | 4c69762ef9d55536eecdb30100a490375094f321 /dwm.c | |
parent | 9cd9ca422ef669685c6458e6a9a782ed3820a515 (diff) | |
download | aur-4662a1a2257c6093389653eab2dcbd2c249ac047.tar.gz |
removed the i = textnw... as remarked by Martin Hurton
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -581,7 +581,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) { y = dc.y + (dc.h / 2) - (h / 2) + dc.font.ascent; x = dc.x + (h / 2); /* shorten text if necessary */ - for(len = MIN(olen, sizeof buf); len && (i = textnw(buf, len)) > dc.w - h; len--); + for(len = MIN(olen, sizeof buf); len && textnw(buf, len) > dc.w - h; len--); if(!len) return; memcpy(buf, text, len); |