Skip to content

Commit

Permalink
Fix compilation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Aug 22, 2022
1 parent cb7615e commit e863f6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helix-view/src/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e863f6f

Please sign in to comment.