From: Anselm R Garbe Date: Thu, 13 Mar 2008 12:02:29 +0000 (+0000) Subject: applied next patch of Sander X-Git-Url: https://git.armaanb.net/?p=dmenu.git;a=commitdiff_plain;h=301b4e55912dc611bd941002b27c72f17fcc5b39 applied next patch of Sander --- diff --git a/dmenu.c b/dmenu.c index ddde475..5f81d25 100644 --- a/dmenu.c +++ b/dmenu.c @@ -505,9 +505,8 @@ match(char *pattern) { item = j = NULL; nitem = 0; for(i = allitems; i; i = i->next) - if(!fstrncmp(pattern, i->text, plen)) - j = appenditem(i, j); - else if(fstrstr(i->text, pattern)) + if(!fstrncmp(pattern, i->text, plen) + || fstrstr(i->text, pattern)) j = appenditem(i, j); curr = prev = next = sel = item; calcoffsets();