|
|
@ -505,9 +505,8 @@ match(char *pattern) { |
|
|
|
item = j = NULL; |
|
|
|
item = j = NULL; |
|
|
|
nitem = 0; |
|
|
|
nitem = 0; |
|
|
|
for(i = allitems; i; i = i->next) |
|
|
|
for(i = allitems; i; i = i->next) |
|
|
|
if(!fstrncmp(pattern, i->text, plen)) |
|
|
|
if(!fstrncmp(pattern, i->text, plen) |
|
|
|
j = appenditem(i, j); |
|
|
|
|| fstrstr(i->text, pattern)) |
|
|
|
else if(fstrstr(i->text, pattern)) |
|
|
|
|
|
|
|
j = appenditem(i, j); |
|
|
|
j = appenditem(i, j); |
|
|
|
curr = prev = next = sel = item; |
|
|
|
curr = prev = next = sel = item; |
|
|
|
calcoffsets(); |
|
|
|
calcoffsets(); |
|
|
|