Skip to content
Myr

Revert "Always enable colors on Windows, closes #469"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit a4e78519c4adfafd337229b1e33d11ec89dc7cf9.

authored by sharkdp · committed by David Peter · parent e3c77ef · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/main.rs+1 added-1 removed
155 unmodified lines
156157 let path_separator = matches.value_of("path-separator").map(|str| str.to_owned());158159 #[cfg(windows)]160 ansi_term::enable_ansi_support().ok();160 let colored_output = colored_output && ansi_term::enable_ansi_support().is_ok();161162 let ls_colors = if colored_output {163 Some(LsColors::from_env().unwrap_or_default())164 } else {
262 unmodified lines