forked from enlightenment/enlightenment
everything- ensure we dont skip over past end of string for fuzzy match
This commit is contained in:
parent
850fe29f8d
commit
c29dd0f5cf
|
@ -139,7 +139,10 @@ evry_fuzzy_match(const char *str, const char *match)
|
|||
ii = 0;
|
||||
/* go to next word */
|
||||
for (; (*p != 0) && ((isspace(*p) || (ip && ispunct(*p)))); p += ii)
|
||||
if (!_evry_utf8_next(p, &ii)) break;
|
||||
{
|
||||
ii = 0;
|
||||
if (!_evry_utf8_next(p, &ii)) break;
|
||||
}
|
||||
cnt++;
|
||||
next = p;
|
||||
m_cnt = 0;
|
||||
|
|
Loading…
Reference in New Issue