From ae9c181d6ba34c4f9db425f22b642c7bd22e4a79 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 25 Sep 2001 12:50:45 +0000 Subject: 15869 --- Src/text.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Src/text.c') diff --git a/Src/text.c b/Src/text.c index 73b409e02..ddb4b8a2a 100644 --- a/Src/text.c +++ b/Src/text.c @@ -274,8 +274,9 @@ gettext2(Estate state) break; case WC_SUBLIST: if (!s) { - if (wc_code(*state->pc) != WC_PIPE) - stack = 1; + if (!(WC_SUBLIST_FLAGS(code) & WC_SUBLIST_SIMPLE) && + wc_code(*state->pc) != WC_PIPE) + stack = -1; if (WC_SUBLIST_FLAGS(code) & WC_SUBLIST_NOT) taddstr(stack ? "!" : "! "); if (WC_SUBLIST_FLAGS(code) & WC_SUBLIST_COPROC) @@ -293,7 +294,7 @@ gettext2(Estate state) taddstr("coproc "); } } - if (!stack && (WC_SUBLIST_FLAGS(s->code) & WC_SUBLIST_SIMPLE)) + if (stack < 1 && (WC_SUBLIST_FLAGS(s->code) & WC_SUBLIST_SIMPLE)) state->pc++; break; case WC_PIPE: -- cgit 1.4.1