mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 12:21:08 +01:00
When another app held the system clipboard open or refused the write, Cut removed the art and kept it in the internal clipboard, but every Paste command then read the older contents that the other app had left on the system clipboard, and pasted those contents instead of the cut art. A failed Copy had the same fault. A failed write is now recorded whether or not the copied formats have text. Until another app copies something, every Paste command takes the internal clipboard, and a paste into type or a text field takes the copy's text, or nothing when the formats have no text. On macOS the clipboard service now reports the pasteboard's change count, so a later copy is noticed whatever the clipboard holds. Linux and the BSDs have no change count: there a later copy is noticed only when it changes the clipboard's text, so a failed write is kept only while the clipboard held text at the failure. The new tests run a failed Copy or Cut through the six Paste commands and a paste into type, with the clipboard locked or the write refused, with and without a change count, with On Copy: Include SVG Code off so that the formats have no text, and over a picture another app copied.