diff options
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/clipboard.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-view/src/clipboard.rs b/helix-view/src/clipboard.rs index 8d49ed43..0a9774e8 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() } |