Skip to content

Commit

Permalink
fix(colors): handler_opts.color(false) should disable color (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 authored Mar 18, 2022
1 parent 77cdfc4 commit 209275d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ impl MietteHandlerOpts {
None if supports_unicode::on(Stream::Stderr) => ThemeCharacters::unicode(),
None => ThemeCharacters::ascii(),
};
let styles = if self.rgb_colors == Some(true) {
let styles = if self.color == Some(false) {
ThemeStyles::none()
} else if self.rgb_colors == Some(true) {
ThemeStyles::rgb()
} else if self.ansi_colors == Some(true) {
ThemeStyles::ansi()
Expand Down

0 comments on commit 209275d

Please sign in to comment.