Skip to content

Commit c37d5cf

Browse files
committed
fix(clipboard): dont connect to os clipboard when osc52 enabled
1 parent ffb5010 commit c37d5cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub struct ClipboardManager {
5555
impl ClipboardManager {
5656
pub fn new(conf: ClipboardConfig) -> (ClipboardManager, Option<String>) {
5757
// Dont worry about connecting to OS clipboard if using command
58-
if conf.cmd.is_some() {
58+
if conf.cmd.is_some() || conf.osc52 {
5959
#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))]
6060
return (
6161
Self {

0 commit comments

Comments
 (0)