Skip to content

Commit

Permalink
fix: auto color detection was borked
Browse files Browse the repository at this point in the history
  • Loading branch information
Person-93 committed Dec 30, 2024
1 parent 22d2c81 commit d81e2b4
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 @@ -66,7 +66,7 @@ fn main() -> Result<()> {

match color {
ColorChoice::Auto => {
let enable = env::var("TERM").map_or(true, |term| term == "dumb")
let enable = env::var("TERM").map_or(true, |term| term != "dumb")
&& std::io::stdout().is_terminal();
if !enable {
yansi::disable();
Expand Down

0 comments on commit d81e2b4

Please sign in to comment.