tyet another cosmetic fix - dmenu - Dmenu fork with xft fonts.
(HTM) git clone git://r-36.net/dmenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2e898a308ff4c668220a6832e15d0d30424bf85a
(DIR) parent 6514b07ad24e9066252c418cdec1d6ccae570cf6
(HTM) Author: Anselm R. Garbe <garbeam@gmail.com>
Date: Sun, 23 Sep 2007 18:32:08 +0200
yet another cosmetic fix
Diffstat:
dmenu.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/dmenu.c b/dmenu.c
t@@ -507,20 +507,16 @@ match(char *pattern) {
nitem = 0;
for(i = allitems; i; i=i->next)
i->matched = False;
-
for(i = allitems; i; i = i->next)
if(!i->matched && !strncasecmp(pattern, i->text, plen))
j = appenditem(i, j);
-
- for (i = allitems; i; i = i->next)
+ for(i = allitems; i; i = i->next)
if(!i->matched && strcasestr(i->text, pattern))
j = appenditem(i, j);
-
if(idomatch)
- for (i = allitems; i; i = i->next)
+ for(i = allitems; i; i = i->next)
if(!i->matched && strcaseido(i->text, pattern))
j = appenditem(i, j);
-
curr = prev = next = sel = item;
calcoffsets();
}