ソースを参照

yet another cosmetic fix

master
Anselm R. Garbe 17年前
コミット
2e898a308f
1個のファイルの変更2行の追加6行の削除
  1. +2
    -6
      dmenu.c

+ 2
- 6
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();
}


読み込み中…
キャンセル
保存