Commit 423e705d authored by Stefan Monnier's avatar Stefan Monnier

(update_syntax_table): Check that oldi has the same

properties as old_prop before deciding not to invalidate.
parent 469fc0a2
......@@ -162,7 +162,7 @@ update_syntax_table (charpos, count, init, object)
}
oldi = i = count > 0 ? gl_state.forward_i : gl_state.backward_i;
/* We are guarantied to be called with CHARPOS either in i,
/* We are guaranteed to be called with CHARPOS either in i,
or further off. */
if (NULL_INTERVAL_P (i))
error ("Error in syntax_table logic for to-the-end intervals");
......@@ -172,7 +172,7 @@ update_syntax_table (charpos, count, init, object)
error ("Error in syntax_table logic for intervals <-");
/* Update the interval. */
i = update_interval (i, charpos);
if (oldi->position != INTERVAL_LAST_POS (i))
if (!gl_state.left_ok || oldi->position != INTERVAL_LAST_POS (i))
{
invalidate = 0;
gl_state.right_ok = 1; /* Invalidate the other end. */
......@@ -186,7 +186,7 @@ update_syntax_table (charpos, count, init, object)
error ("Error in syntax_table logic for intervals ->");
/* Update the interval. */
i = update_interval (i, charpos);
if (i->position != INTERVAL_LAST_POS (oldi))
if (!gl_state.right_ok || i->position != INTERVAL_LAST_POS (oldi))
{
invalidate = 0;
gl_state.left_ok = 1; /* Invalidate the other end. */
......
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