Commit 4c8535eb authored by Richard M. Stallman's avatar Richard M. Stallman

(skip_chars): Fix previous change in syntax/backward case.

parent 028873a0
......@@ -1285,21 +1285,25 @@ skip_chars (forwardp, syntaxp, string, lim)
{
int savepos = pos;
DEC_POS (pos);
UPDATE_SYNTAX_TABLE_BACKWARD (pos);
if (!fastmap[(int) SYNTAX (FETCH_CHAR (pos))])
{
pos = savepos;
break;
}
UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
}
}
else
{
while (pos > XINT (lim)
&& fastmap[(int) SYNTAX (FETCH_BYTE (pos - 1))])
while (pos > XINT (lim))
{
pos--;
UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
UPDATE_SYNTAX_TABLE_BACKWARD (pos);
if (!fastmap[(int) SYNTAX (FETCH_BYTE (pos))])
{
pos++;
break;
}
}
}
}
......
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