Xinqi Bao's Git
projects
/
dmenu.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
6514b07
)
yet another cosmetic fix
author
Anselm R. Garbe <
[email protected]
>
Sun, 23 Sep 2007 16:32:08 +0000
(18:32 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Sun, 23 Sep 2007 16:32:08 +0000
(18:32 +0200)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
a4fca09
..
dea227e
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-507,20
+507,16
@@
match(char *pattern) {
nitem = 0;
for(i = allitems; i; i=i->next)
i->matched = False;
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)
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(!i->matched && strcasestr(i->text, pattern))
j = appenditem(i, j);
-
if(idomatch)
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);
if(!i->matched && strcaseido(i->text, pattern))
j = appenditem(i, j);
-
curr = prev = next = sel = item;
calcoffsets();
}
curr = prev = next = sel = item;
calcoffsets();
}