Mercurial > emacs
changeset 45263:eeec3bb72a1b
(search_buffer): Give up boyer moore search if inverse
translation change charset_base.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 13 May 2002 00:06:01 +0000 |
parents | 780424a19a2b |
children | 2aa98245ae6f |
files | src/search.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/search.c Mon May 13 00:05:02 2002 +0000 +++ b/src/search.c Mon May 13 00:06:01 2002 +0000 @@ -1229,7 +1229,11 @@ /* 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,