diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-03-13 12:02:29 +0000 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-03-13 12:02:29 +0000 |
commit | 301b4e55912dc611bd941002b27c72f17fcc5b39 (patch) | |
tree | 2d209964ab7829595298f549271b728a42b797cf | |
parent | 38b866ba3453e2a7567b084a353e50a36ed92221 (diff) |
applied next patch of Sander
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -505,9 +505,8 @@ match(char *pattern) { | |||
505 | item = j = NULL; | 505 | item = j = NULL; |
506 | nitem = 0; | 506 | nitem = 0; |
507 | for(i = allitems; i; i = i->next) | 507 | for(i = allitems; i; i = i->next) |
508 | if(!fstrncmp(pattern, i->text, plen)) | 508 | if(!fstrncmp(pattern, i->text, plen) |
509 | j = appenditem(i, j); | 509 | || fstrstr(i->text, pattern)) |
510 | else if(fstrstr(i->text, pattern)) | ||
511 | j = appenditem(i, j); | 510 | j = appenditem(i, j); |
512 | curr = prev = next = sel = item; | 511 | curr = prev = next = sel = item; |
513 | calcoffsets(); | 512 | calcoffsets(); |