[hackers] [dmenu] removed the i = textnw... as remarked by Martin Hurton || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Mon, 18 Aug 2008 09:17:19 +0000 (UTC)

changeset: 274:f57d017fdd1a
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Mon Aug 18 10:17:15 2008 +0100
files: dmenu.c
description:
removed the i = textnw... as remarked by Martin Hurton

diff -r 3d293ddbde2f -r f57d017fdd1a dmenu.c
--- a/dmenu.c Mon Aug 18 10:03:28 2008 +0100
+++ b/dmenu.c Mon Aug 18 10:17:15 2008 +0100
@@ -226,7 +226,7 @@
         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);
Received on Mon Aug 18 2008 - 09:17:19 UTC

This archive was generated by hypermail 2.2.0 : Mon Aug 18 2008 - 09:24:08 UTC