From ea9af0c3806a0bfefa81e78d6e3542ae22049723 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 20 Feb 2023 10:22:24 +0000 Subject: ash: really reset ANSI emulation in interactive mode Commit 329f907b2 (ash: only reset ANSI emulation in interactive loop) claimed to move resetting of ANSI emulation up into the main interactive loop. Unfortunately it *just* missed the if-block for interactive mode. Put the call to skip_ansi_emulation() in the right place. --- shell/ash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 090066765..43b55b259 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -14569,10 +14569,10 @@ cmdloop(int top) if (iflag && top) { inter++; chkmail(); - } #if ENABLE_PLATFORM_MINGW32 - skip_ansi_emulation(TRUE); + skip_ansi_emulation(TRUE); #endif + } n = parsecmd(inter); #if DEBUG if (DEBUG > 2 && debug && (n != NODE_EOF)) -- cgit v1.2.3-55-g6feb