|
|
@ -90,13 +90,13 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "wasm32")]
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
|
|
pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
|
|
|
|
pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
|
|
|
|
// TODO:
|
|
|
|
// TODO:
|
|
|
|
Box::new(provider::FallbackProvider::new())
|
|
|
|
Box::new(provider::FallbackProvider::new())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[cfg(not(any(windows, target_os = "wasm32", target_os = "macos")))]
|
|
|
|
#[cfg(not(any(windows, target_arch = "wasm32", target_os = "macos")))]
|
|
|
|
pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
|
|
|
|
pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
|
|
|
|
use helix_stdx::env::{binary_exists, env_var_is_set};
|
|
|
|
use helix_stdx::env::{binary_exists, env_var_is_set};
|
|
|
|
use provider::command::is_exit_success;
|
|
|
|
use provider::command::is_exit_success;
|
|
|
|