diff --git a/src/ChangeLog b/src/ChangeLog index 2ed1cf6fd4c..77b6334f0d4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-04-25 Kenichi Handa + + * syntax.c (skip_chars): Fix previous change. + 2003-04-24 Kenichi Handa * syntax.c (skip_chars): Make the code faster by using the common diff --git a/src/syntax.c b/src/syntax.c index dbdac11694d..d25c4394c6e 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1656,7 +1656,7 @@ skip_chars (forwardp, syntaxp, string, lim) p = GAP_END_ADDR; stop = endp; } - if (fastmap[*p]) + if (!fastmap[*p]) break; p++, pos++; } @@ -1709,7 +1709,7 @@ skip_chars (forwardp, syntaxp, string, lim) p = GPT_ADDR; stop = endp; } - if (fastmap[p[-1]]) + if (!fastmap[p[-1]]) break; p--, pos--; }