diff options
author | Omnikar | 2021-12-03 03:41:13 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-12-13 15:48:45 +0000 |
commit | cce34feb4e3f683db90b7bc37eead4c460e7904b (patch) | |
tree | de7e1d5db5317c56b1bf792f53e741c5c68a0e3d /helix-term | |
parent | 42e6d96a75c743c2fa8da6c8a0587487b3c21bf0 (diff) |
Assume true color support on Windows
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 +} |