mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
6cefccb939
commit
fbdde523c4
1 changed files with 2 additions and 0 deletions
2
core/src/external/clipboard.rs
vendored
2
core/src/external/clipboard.rs
vendored
|
|
@ -46,6 +46,8 @@ pub async fn clipboard_set(s: impl AsRef<OsStr>) -> Result<()> {
|
||||||
if stdin.write_all(s.as_ref().as_bytes()).await.is_err() {
|
if stdin.write_all(s.as_ref().as_bytes()).await.is_err() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
drop(stdin);
|
||||||
|
|
||||||
if child.wait().await.map(|s| s.success()).unwrap_or_default() {
|
if child.wait().await.map(|s| s.success()).unwrap_or_default() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue