diff options
-rw-r--r-- | dmenu.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -507,20 +507,16 @@ match(char *pattern) { | |||
507 | nitem = 0; | 507 | nitem = 0; |
508 | for(i = allitems; i; i=i->next) | 508 | for(i = allitems; i; i=i->next) |
509 | i->matched = False; | 509 | i->matched = False; |
510 | |||
511 | for(i = allitems; i; i = i->next) | 510 | for(i = allitems; i; i = i->next) |
512 | if(!i->matched && !strncasecmp(pattern, i->text, plen)) | 511 | if(!i->matched && !strncasecmp(pattern, i->text, plen)) |
513 | j = appenditem(i, j); | 512 | j = appenditem(i, j); |
514 | 513 | for(i = allitems; i; i = i->next) | |
515 | for (i = allitems; i; i = i->next) | ||
516 | if(!i->matched && strcasestr(i->text, pattern)) | 514 | if(!i->matched && strcasestr(i->text, pattern)) |
517 | j = appenditem(i, j); | 515 | j = appenditem(i, j); |
518 | |||
519 | if(idomatch) | 516 | if(idomatch) |
520 | for (i = allitems; i; i = i->next) | 517 | for(i = allitems; i; i = i->next) |
521 | if(!i->matched && strcaseido(i->text, pattern)) | 518 | if(!i->matched && strcaseido(i->text, pattern)) |
522 | j = appenditem(i, j); | 519 | j = appenditem(i, j); |
523 | |||
524 | curr = prev = next = sel = item; | 520 | curr = prev = next = sel = item; |
525 | calcoffsets(); | 521 | calcoffsets(); |
526 | } | 522 | } |