Commit 510b6af4 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(re_search_2): Fix previous change.

parent 89233d40
......@@ -4075,15 +4075,16 @@ re_search_2 (bufp, str1, size1, str2, size2, startpos, range, regs, stop)
}
}
else if (multibyte && ! target_multibyte)
{
buf_ch = *d;
MAKE_CHAR_MULTIBYTE (buf_ch);
if (fastmap[CHAR_LEADING_CODE (buf_ch)])
break;
while (range > lim)
{
buf_ch = *d;
MAKE_CHAR_MULTIBYTE (buf_ch);
if (fastmap[CHAR_LEADING_CODE (buf_ch)])
break;
d++;
range--;
}
d++;
range--;
}
else
while (range > lim && !fastmap[*d])
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment