From 79ce5a13a0b938f2915443898308493e48e4de97 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 1 Aug 1990 14:36:45 +0000 Subject: [PATCH] only leave ms_std's if prodepth > 0 --- util/opt/backward.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1