Skip to content

Commit

Permalink
ash: really reset ANSI emulation in interactive mode
Browse files Browse the repository at this point in the history
Commit 329f907 (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.
  • Loading branch information
rmyorston committed Feb 20, 2023
1 parent 2014a96 commit ea9af0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/ash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ea9af0c

Please sign in to comment.