Skip to content

Commit

Permalink
fix(stream): Give NO_COLOR higher precedence
Browse files Browse the repository at this point in the history
Fixes #178
  • Loading branch information
epage committed Feb 27, 2024
1 parent 69a8c69 commit 16a0aaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/anstream/src/auto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ fn choice(raw: &dyn RawStream) -> ColorChoice {
let clicolor = anstyle_query::clicolor();
let clicolor_enabled = clicolor.unwrap_or(false);
let clicolor_disabled = !clicolor.unwrap_or(true);
if anstyle_query::clicolor_force() {
ColorChoice::Always
} else if anstyle_query::no_color() {
if anstyle_query::no_color() {
ColorChoice::Never
} else if anstyle_query::clicolor_force() {
ColorChoice::Always
} else if clicolor_disabled {
ColorChoice::Never
} else if raw.is_terminal()
Expand Down

0 comments on commit 16a0aaa

Please sign in to comment.