mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
don't let externals break ansi escapes (#3438)
This commit is contained in:
parent
86e6fcd309
commit
1b4f7b34c8
@ -114,6 +114,12 @@ impl WholeStreamCommand for RunExternalCommand {
|
||||
external_redirection,
|
||||
);
|
||||
|
||||
// When externals return, don't let them mess up the ansi escapes
|
||||
#[cfg(windows)]
|
||||
{
|
||||
let _ = nu_ansi_term::enable_ansi_support();
|
||||
}
|
||||
|
||||
Ok(result?.to_action_stream())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user