diff --git a/helix-term/src/lib.rs b/helix-term/src/lib.rs index 4fe76cd59..58cb139c7 100644 --- a/helix-term/src/lib.rs +++ b/helix-term/src/lib.rs @@ -10,8 +10,13 @@ pub mod job; pub mod keymap; pub mod ui; +#[cfg(not(windows))] fn true_color() -> bool { std::env::var("COLORTERM") .map(|v| matches!(v.as_str(), "truecolor" | "24bit")) .unwrap_or(false) } +#[cfg(windows)] +fn true_color() -> bool { + true +}