diff options
author | Ron Yorston <rmy@pobox.com> | 2023-02-20 10:22:24 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-02-20 10:22:24 +0000 |
commit | ea9af0c3806a0bfefa81e78d6e3542ae22049723 (patch) | |
tree | 68d37769b82d0c5fb96f94dc844b4564000f336d /shell/ash.c | |
parent | 2014a9685633bb48bfcd4363d8d883055ef8b68b (diff) | |
download | busybox-w32-ea9af0c3806a0bfefa81e78d6e3542ae22049723.tar.gz busybox-w32-ea9af0c3806a0bfefa81e78d6e3542ae22049723.tar.bz2 busybox-w32-ea9af0c3806a0bfefa81e78d6e3542ae22049723.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
14569 | if (iflag && top) { | 14569 | if (iflag && top) { |
14570 | inter++; | 14570 | inter++; |
14571 | chkmail(); | 14571 | chkmail(); |
14572 | } | ||
14573 | #if ENABLE_PLATFORM_MINGW32 | 14572 | #if ENABLE_PLATFORM_MINGW32 |
14574 | skip_ansi_emulation(TRUE); | 14573 | skip_ansi_emulation(TRUE); |
14575 | #endif | 14574 | #endif |
14575 | } | ||
14576 | n = parsecmd(inter); | 14576 | n = parsecmd(inter); |
14577 | #if DEBUG | 14577 | #if DEBUG |
14578 | if (DEBUG > 2 && debug && (n != NODE_EOF)) | 14578 | if (DEBUG > 2 && debug && (n != NODE_EOF)) |