improve error logging for OSC 52 in mux

refs: #1790
This commit is contained in:
Wez Furlong committed 2022-03-29 08:09:52 -07:00
1 parent f478672fd8
commit 1a71a0b216
2 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -624,7 +624,7 @@ impl<'a> Performer<'a> {
let selection = selection_to_selection(selection);
match self.set_clipboard_contents(selection, Some(selection_data)) {
Ok(_) => (),
Err(err) => error!("failed to set clipboard in response to OSC 52: {:?}", err),
Err(err) => error!("failed to set clipboard in response to OSC 52: {:#?}", err),
}
}
OperatingSystemCommand::ITermProprietary(iterm) => match iterm {
+10 -8
View File
@@ -742,14 +742,16 @@ impl Clipboard for RemoteClipboard {
selection: ClipboardSelection,
clipboard: Option<String>,
) -> anyhow::Result<()> {
self.sender.send(DecodedPdu {
serial: 0,
pdu: Pdu::SetClipboard(SetClipboard {
pane_id: self.pane_id,
clipboard,
selection,
}),
})?;
self.sender
.send(DecodedPdu {
serial: 0,
pdu: Pdu::SetClipboard(SetClipboard {
pane_id: self.pane_id,
clipboard,
selection,
}),
})
.context("RemoteClipboard::set_contents send failed")?;
Ok(())
}
}