changeset 70291:e4dbfbc6b5c6

(Fforward_comment): Don't forget to break out of the loop when we skipped backward over a generic comment.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 30 Apr 2006 15:35:54 +0000
parents 98e4db27f6c7
children 2b77fa42947f
files src/ChangeLog src/syntax.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Apr 30 02:35:46 2006 +0000
+++ b/src/ChangeLog	Sun Apr 30 15:35:54 2006 +0000
@@ -1,3 +1,8 @@
+2006-04-30  Martin Rudalics  <rudalics@gmx.at>  (tiny change)
+
+	* syntax.c (Fforward_comment): Don't forget to break out of the loop
+	when we skipped backward over a generic comment.
+
 2006-04-27  Nick Roberts  <nickrob@snap.net.nz>
 
 	* .gdbinit (pp1, pv1): Only print value as expression is now
--- a/src/syntax.c	Sun Apr 30 02:35:46 2006 +0000
+++ b/src/syntax.c	Sun Apr 30 15:35:54 2006 +0000
@@ -2140,6 +2140,9 @@
 		  from_byte = ini_byte;
 		  goto leave;
 		}
+ 	      else
+		/* We have skipped one comment.  */
+		break;
 	    }
 	  else if (code == Sendcomment)
 	    {