Skip to content

Commit

Permalink
Revert "Always enable colors on Windows, closes #469"
Browse files Browse the repository at this point in the history
This reverts commit a4e7851.
  • Loading branch information
sharkdp committed May 19, 2020
1 parent d41a5a9 commit 8a02ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8a02ab0

Please sign in to comment.