diff options
Diffstat (limited to 'helix-view/src/clipboard.rs')
-rw-r--r-- | helix-view/src/clipboard.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/helix-view/src/clipboard.rs b/helix-view/src/clipboard.rs index 4d57a5b7..8d49ed43 100644 --- a/helix-view/src/clipboard.rs +++ b/helix-view/src/clipboard.rs @@ -139,7 +139,7 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> { } } -mod provider { +pub mod provider { use super::{ClipboardProvider, ClipboardType}; use anyhow::Result; use std::borrow::Cow; @@ -164,6 +164,12 @@ mod provider { } } + impl Default for NopProvider { + fn default() -> Self { + Self::new() + } + } + #[cfg(not(target_os = "windows"))] impl ClipboardProvider for NopProvider { fn name(&self) -> Cow<str> { |