(Fforward_comment): When count1 is negative, return nil if FROM reaches STOP.
authorRichard M. Stallman <rms@gnu.org>
Thu, 24 Jul 1997 07:40:26 +0000 (07:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 24 Jul 1997 07:40:26 +0000 (07:40 +0000)
src/syntax.c

index df89836..371dded 100644 (file)
@@ -1507,9 +1507,15 @@ between them, return t; otherwise return nil.")
 
   while (count1 < 0)
     {
-      while (from > stop)
+      while (1)
        {
          int quoted;
+         if (from <= stop)
+           {
+             SET_PT (stop);
+             immediate_quit = 0;
+             return Qnil;
+           }
 
          DEC_POS (from);
          quoted = char_quoted (from);