From: Anselm R. Garbe Date: Sun, 23 Sep 2007 16:32:08 +0000 (+0200) Subject: yet another cosmetic fix X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=2e898a308ff4c668220a6832e15d0d30424bf85a;p=dmenu.git yet another cosmetic fix --- diff --git a/dmenu.c b/dmenu.c index a4fca09..dea227e 100644 --- a/dmenu.c +++ b/dmenu.c @@ -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(); }