From: Richard M. Stallman Date: Sat, 19 Aug 1995 17:00:34 +0000 (+0000) Subject: (scan_sexps_forward): Fix previous change. X-Git-Tag: emacs-19.34~2966 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=308444156d9bcce4183966183d11f1adc3a9e3d5;p=emacs.git (scan_sexps_forward): Fix previous change. --- diff --git a/src/syntax.c b/src/syntax.c index ed482be484d..34f76d76a4a 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -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: