From cce34feb4e3f683db90b7bc37eead4c460e7904b Mon Sep 17 00:00:00 2001 From: Omnikar Date: Thu, 2 Dec 2021 22:41:13 -0500 Subject: [PATCH] Assume true color support on Windows --- helix-term/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helix-term/src/lib.rs b/helix-term/src/lib.rs index 4fe76cd5..58cb139c 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 +}