Commit d2ac725b authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(search_buffer): Give up boyer moore search if inverse

translation change charset_base.
parent 4d8ff34d
......@@ -1229,7 +1229,11 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
/* Keep track of which character set row
contains the characters that need translation. */
int charset_base_code = c & ~CHAR_FIELD3_MASK;
if (charset_base == -1)
int inverse_charset_base = inverse & ~CHAR_FIELD3_MASK;
if (charset_base_code != inverse_charset_base)
boyer_moore_ok = 0;
else if (charset_base == -1)
charset_base = charset_base_code;
else if (charset_base != charset_base_code)
/* If two different rows appear, needing translation,
......
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