diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-09-23 18:32:08 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-09-23 18:32:08 +0200 |
| commit | 2e898a308ff4c668220a6832e15d0d30424bf85a (patch) | |
| tree | 842cf6f899288c182fe505c032225eb7e2f016b4 | |
| parent | 6514b07ad24e9066252c418cdec1d6ccae570cf6 (diff) | |
yet another cosmetic fix
| -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 | } |
