aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 0ee48bb3725..5e697d350ff 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2859,10 +2859,13 @@ scan_lists (EMACS_INT from, EMACS_INT count, EMACS_INT depth, bool sexpflag)
2859 case Smath: 2859 case Smath:
2860 if (!sexpflag) 2860 if (!sexpflag)
2861 break; 2861 break;
2862 temp_pos = dec_bytepos (from_byte); 2862 if (from > BEGV)
2863 UPDATE_SYNTAX_TABLE_BACKWARD (from - 1); 2863 {
2864 if (from != stop && c == FETCH_CHAR_AS_MULTIBYTE (temp_pos)) 2864 temp_pos = dec_bytepos (from_byte);
2865 DEC_BOTH (from, from_byte); 2865 UPDATE_SYNTAX_TABLE_BACKWARD (from - 1);
2866 if (from != stop && c == FETCH_CHAR_AS_MULTIBYTE (temp_pos))
2867 DEC_BOTH (from, from_byte);
2868 }
2866 if (mathexit) 2869 if (mathexit)
2867 { 2870 {
2868 mathexit = 0; 2871 mathexit = 0;