diff src/syntax.c @ 77757:cbb18b4e981b

(skip_chars): Update syntax-table only after we checked that the new location is valid.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 19 May 2007 15:15:19 +0000
parents e90d04cd455a
children d15a774f9796
line wrap: on
line diff
--- a/src/syntax.c	Sat May 19 14:00:15 2007 +0000
+++ b/src/syntax.c	Sat May 19 15:15:19 2007 +0000
@@ -1669,10 +1669,10 @@
 		      p = GPT_ADDR;
 		      stop = endp;
 		    }
+		  UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
 		  if (! fastmap[(int) SYNTAX (p[-1])])
 		    break;
 		  p--, pos--;
-		  UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
 		}
 	  }
       }