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) ...@@ -4075,15 +4075,16 @@ re_search_2 (bufp, str1, size1, str2, size2, startpos, range, regs, stop)
} }
} }
else if (multibyte && ! target_multibyte) else if (multibyte && ! target_multibyte)
{ while (range > lim)
buf_ch = *d; {
MAKE_CHAR_MULTIBYTE (buf_ch); buf_ch = *d;
if (fastmap[CHAR_LEADING_CODE (buf_ch)]) MAKE_CHAR_MULTIBYTE (buf_ch);
break; if (fastmap[CHAR_LEADING_CODE (buf_ch)])
break;
d++; d++;
range--; range--;
} }
else else
while (range > lim && !fastmap[*d]) 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