aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-08-22 01:17:09 +0000
committerBlaž Hrastnik2022-08-22 01:18:53 +0000
commite863f6fe2797b0b4e3cbd255789da373d6e5a5fc (patch)
tree7517bc21bb40bdc095a4391708fced0e43e02fc9 /helix-view/src
parentcb7615e0ed119f292eabdce784e4635247ed1eb1 (diff)
Fix compilation on windows
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/clipboard.rs3
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()
}