From 4b20f6f76aed18996f0b8ed026d889aeefdc916a Mon Sep 17 00:00:00 2001 From: Robert Bennett Date: Thu, 10 Oct 2024 10:02:03 -0400 Subject: [PATCH] Maybe fixed clipboard issue on linux --- numbat-cli/src/main.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/numbat-cli/src/main.rs b/numbat-cli/src/main.rs index b1809456..bf6a3779 100644 --- a/numbat-cli/src/main.rs +++ b/numbat-cli/src/main.rs @@ -443,16 +443,7 @@ impl Cli { }; let text = PlainTextFormatter.format(&m, false); - if let Err(e) = { - #[cfg(target_os = "linux")] - { - clipboard.set().wait().text(text) - } - #[cfg(not(target_os = "linux"))] - { - clipboard.set_text(text) - } - } { + if let Err(e) = clipboard.set_text(text) { self.print_diagnostic( RuntimeError::ClipboardError(e.to_string()), );