From 224e2426aeac5c3e01150d227b6a07909182aa1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 22 Aug 2022 10:17:09 +0900 Subject: [PATCH] Fix compilation on windows --- helix-view/src/clipboard.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-view/src/clipboard.rs b/helix-view/src/clipboard.rs index 8d49ed4316de3..0a9774e89769e 100644 --- a/helix-view/src/clipboard.rs +++ b/helix-view/src/clipboard.rs @@ -231,12 +231,11 @@ pub mod provider { use super::*; use anyhow::{bail, Context as _, Result}; - #[cfg(not(windows))] pub fn exists(executable_name: &str) -> bool { which::which(executable_name).is_ok() } - #[cfg(not(any(windows, target_os = "macos")))] + #[cfg(not(windows))] pub fn env_var_is_set(env_var_name: &str) -> bool { std::env::var_os(env_var_name).is_some() }