]> git.eshelyaron.com Git - emacs.git/commitdiff
(scan_sexps_forward): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Sat, 19 Aug 1995 17:00:34 +0000 (17:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 19 Aug 1995 17:00:34 +0000 (17:00 +0000)
src/syntax.c

index ed482be484da7cca1fd6d620cc6c15dfbc1640eb..34f76d76a4afc5abb29dfdace4b98bd5cf2e0bd8 100644 (file)
@@ -1534,7 +1534,7 @@ scan_sexps_forward (stateptr, from, end, targetdepth,
            error ("Nesting too deep for parser");
          curlevel->prev = -1;
          curlevel->last = -1;
-         if (targetdepth != depth) goto done;
+         if (targetdepth == depth) goto done;
          break;
 
        case Sclose:
@@ -1544,7 +1544,7 @@ scan_sexps_forward (stateptr, from, end, targetdepth,
          if (curlevel != levelstart)
            curlevel--;
          curlevel->prev = curlevel->last;
-         if (targetdepth != depth) goto done;
+         if (targetdepth == depth) goto done;
          break;
 
        case Sstring: