mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 17:23:00 +00:00
A filter run, a plug-in command, or a run that calls commands applied its output through Session::edit, which records an undo step and marks the document modified even when the output changes nothing. The output is now applied to a copy first, as colorcmds::edit_if_changed does: only a copy whose objects or kept documentData differ becomes the document, as one undo step. Otherwise the document, its undo history and its saved state stay as they were, and the run's objects are still selected. Docs: params text of plugin.run and plug-in commands, docs/plugins.md, docs/mcp.md, docs/target-app-parity.md.