From: ceriel Date: Wed, 1 Aug 1990 14:36:45 +0000 (+0000) Subject: only leave ms_std's if prodepth > 0 X-Git-Tag: release-5-5~1610 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=79ce5a13a0b938f2915443898308493e48e4de97;p=ack.git only leave ms_std's if prodepth > 0 --- diff --git a/util/opt/backward.c b/util/opt/backward.c index b6c117a5a..632889e39 100644 --- a/util/opt/backward.c +++ b/util/opt/backward.c @@ -161,7 +161,8 @@ backward() { goodrom = (rc >= 2); break; case ps_mes: - if ((int) aoff(lnp->l_a.la_arg, 0) == ms_std) { + if (prodepth != 0 && + (int) aoff(lnp->l_a.la_arg, 0) == ms_std) { lnp->l_next = i; i = lnp; continue;