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;
|
ii = 0;
|
||||||
/* go to next word */
|
/* go to next word */
|
||||||
for (; (*p != 0) && ((isspace(*p) || (ip && ispunct(*p)))); p += ii)
|
for (; (*p != 0) && ((isspace(*p) || (ip && ispunct(*p)))); p += ii)
|
||||||
|
{
|
||||||
|
ii = 0;
|
||||||
if (!_evry_utf8_next(p, &ii)) break;
|
if (!_evry_utf8_next(p, &ii)) break;
|
||||||
|
}
|
||||||
cnt++;
|
cnt++;
|
||||||
next = p;
|
next = p;
|
||||||
m_cnt = 0;
|
m_cnt = 0;
|
||||||
|
|
Loading…
Reference in New Issue