everything- ensure we dont skip over past end of string for fuzzy match

This commit is contained in:
Carsten Haitzler 2019-08-20 23:55:17 +01:00
parent 850fe29f8d
commit c29dd0f5cf
1 changed files with 4 additions and 1 deletions

View File

@ -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;