From 96a3eaa482ab0b3dc44b7dc704ac72efadaf44f9 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 04:04:21 +0700 Subject: [PATCH] A copy whose failed write emptied a readable clipboard that held text stays pasteable into type, as the sheet keeps it --- crates/ui-egui/src/sysclip.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/sysclip.rs b/crates/ui-egui/src/sysclip.rs index 0153255a32..b90c7b87d8 100644 --- a/crates/ui-egui/src/sysclip.rs +++ b/crates/ui-egui/src/sysclip.rs @@ -304,8 +304,8 @@ impl VectorcraftApp { } }; // A clipboard with no text can't show a later copy of a picture, or tell an empty clipboard - // from one that couldn't be read. - let trackable = held.is_some(); + // from one that couldn't be read: unless it held text the write emptied, and it reads. + let trackable = held.is_some() || (before_write.is_some() && cb.read(&[TEXT]).is_ok()); self.clipboard_publishing.unwritten = text.filter(|_| current && left_by_write && trackable).map(|text| (held, text)); Err(e.to_string()) }