changeset 8863:b5a4f7db03c7

(Fforward_comment): Do increment from, when reaching single-char comment end going forward.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Sep 1994 19:49:03 +0000
parents 1870d245f7da
children 65731429a2c1
files src/syntax.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c	Sat Sep 17 17:11:21 1994 +0000
+++ b/src/syntax.c	Sat Sep 17 19:49:03 1994 +0000
@@ -653,13 +653,13 @@
 	      return Qnil;
 	    }
 	  c = FETCH_CHAR (from);
+	  from++;
 	  if (SYNTAX (c) == Sendcomment
 	      && SYNTAX_COMMENT_STYLE (c) == comstyle)
 	    /* we have encountered a comment end of the same style
 	       as the comment sequence which began this comment
 	       section */
 	    break;
-	  from++;
 	  if (from < stop && SYNTAX_COMEND_FIRST (c)
 	      && SYNTAX_COMEND_SECOND (FETCH_CHAR (from))
 	      && SYNTAX_COMMENT_STYLE (c) == comstyle)