aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorStefan Monnier2007-05-19 15:15:19 +0000
committerStefan Monnier2007-05-19 15:15:19 +0000
commitd46b87e92ff89e2a712fd9e45c4fac9524d773a4 (patch)
treed41bfe5d237988d1e5b138d48ebab5fc9dff7069 /src/syntax.c
parent5073ad8e155ea640d0229b1e3bf9e5e75cf70e5e (diff)
downloademacs-d46b87e92ff89e2a712fd9e45c4fac9524d773a4.tar.gz
emacs-d46b87e92ff89e2a712fd9e45c4fac9524d773a4.zip
(skip_chars): Update syntax-table only after we checked that
the new location is valid.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index a9e6dda81fe..acb5d37825c 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1669,10 +1669,10 @@ skip_chars (forwardp, syntaxp, string, lim, handle_iso_classes)
1669 p = GPT_ADDR; 1669 p = GPT_ADDR;
1670 stop = endp; 1670 stop = endp;
1671 } 1671 }
1672 UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
1672 if (! fastmap[(int) SYNTAX (p[-1])]) 1673 if (! fastmap[(int) SYNTAX (p[-1])])
1673 break; 1674 break;
1674 p--, pos--; 1675 p--, pos--;
1675 UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
1676 } 1676 }
1677 } 1677 }
1678 } 1678 }