Skip to content

Commit

Permalink
improve clipboard on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed Apr 23, 2024
1 parent 598a34e commit 3f2a077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/ferrite-core/src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,8 @@ impl Buffer {
} else {
self.rope.byte_slice(start..end).to_string()
};
#[cfg(target_os = "linux")]
clipboard::set_primary(copied.clone());
clipboard::set_contents(copied);
}

Expand Down

0 comments on commit 3f2a077

Please sign in to comment.