* syntax.c (scan_sexps_forward): Fix byte position calculation
authorDmitry Antipov <dmantipov@yandex.ru>
Sun, 10 Feb 2013 16:25:33 +0000 (20:25 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Sun, 10 Feb 2013 16:25:33 +0000 (20:25 +0400)
Bug#13664 (a.k.a Bug#13667) introduced with 2013-02-08 change.

src/ChangeLog
src/syntax.c

index a9a92e0..43b8f4b 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-10  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * syntax.c (scan_sexps_forward): Fix byte position calculation
+       Bug#13664 (a.k.a Bug#13667) introduced with 2013-02-08 change.
+
 2013-02-10  Paul Eggert  <eggert@cs.ucla.edu>
 
        * fileio.c (Fexpand_file_name): Omit confusing pointer comparison
index 42500b0..390d732 100644 (file)
@@ -3278,6 +3278,7 @@ do { prev_from = from;                            \
 
  stop:   /* Here if stopping before start of sexp. */
   from = prev_from;    /* We have just fetched the char that starts it; */
+  from_byte = prev_from_byte;
   goto done; /* but return the position before it. */
 
  endquoted: