From a4e78519c4adfafd337229b1e33d11ec89dc7cf9 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 15 Apr 2020 18:47:18 +0200 Subject: [PATCH] Always enable colors on Windows, closes #469 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1e4aefd..5bfd080 100644 --- a/src/main.rs +++ b/src/main.rs @@ -147,7 +147,7 @@ fn run() -> Result { let path_separator = matches.value_of("path-separator").map(|str| str.to_owned()); #[cfg(windows)] - let colored_output = colored_output && ansi_term::enable_ansi_support().is_ok(); + ansi_term::enable_ansi_support().ok(); let ls_colors = if colored_output { Some(LsColors::from_env().unwrap_or_default())