mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 01:40:34 +01:00
Revert "Always enable colors on Windows, closes #469"
This reverts commit a4e78519c4
.
This commit is contained in:
parent
e3c77ef7f5
commit
ddee6aa8f3
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ fn run() -> Result<ExitCode> {
|
|||
let path_separator = matches.value_of("path-separator").map(|str| str.to_owned());
|
||||
|
||||
#[cfg(windows)]
|
||||
ansi_term::enable_ansi_support().ok();
|
||||
let colored_output = colored_output && ansi_term::enable_ansi_support().is_ok();
|
||||
|
||||
let ls_colors = if colored_output {
|
||||
Some(LsColors::from_env().unwrap_or_default())
|
||||
|
|
Loading…
Reference in a new issue