Skip to content

Commit

Permalink
fix(clipboard): dont connect to os clipboard when osc52 enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Oct 2, 2024
1 parent ffb5010 commit c37d5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct ClipboardManager {
impl ClipboardManager {
pub fn new(conf: ClipboardConfig) -> (ClipboardManager, Option<String>) {
// Dont worry about connecting to OS clipboard if using command
if conf.cmd.is_some() {
if conf.cmd.is_some() || conf.osc52 {
#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))]
return (
Self {
Expand Down

0 comments on commit c37d5cf

Please sign in to comment.