aboutsummarylogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe2008-08-18 10:16:36 +0100
committerAnselm R Garbe2008-08-18 10:16:36 +0100
commit4662a1a2257c6093389653eab2dcbd2c249ac047 (patch)
tree4c69762ef9d55536eecdb30100a490375094f321 /dwm.c
parent9cd9ca422ef669685c6458e6a9a782ed3820a515 (diff)
downloadaur-4662a1a2257c6093389653eab2dcbd2c249ac047.tar.gz
removed the i = textnw... as remarked by Martin Hurton
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 265ffb9a371e..dcd6e317b89a 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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);