Skip to content

Commit

Permalink
Maybe fixed clipboard issue on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rben01 committed Oct 10, 2024
1 parent 2998d1f commit 4b20f6f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions numbat-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
);
Expand Down

0 comments on commit 4b20f6f

Please sign in to comment.