summaryrefslogtreecommitdiff
path: root/src/color.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.rs')
-rw-r--r--src/color.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/color.rs b/src/color.rs
index 809c66f..548c222 100644
--- a/src/color.rs
+++ b/src/color.rs
@@ -506,9 +506,9 @@ pub fn detect_color_mode() -> ColorMode {
}
// Early checks
- if std::env::var("COLORTERM").is_ok_and(|colorterm| {
- colorterm.contains("truecolor") || colorterm.contains("24bit")
- }) {
+ if std::env::var("COLORTERM")
+ .is_ok_and(|colorterm| colorterm.contains("truecolor") || colorterm.contains("24bit"))
+ {
return ColorMode::Truecolor;
}