mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 10:47:11 -06:00
A command.batch that edited a document with an undo group and then a document without one was dropped from the journal as a whole when the group was canceled, so a replay lost the second document's edit, which the session kept. Each batch step is now noted in the undo groups it belongs to, by the same rule as a top-level command, and a cancel takes only those steps out of the batch's journal entry. A step that changed the active document becomes that change. Undo groups that stay open follow the entry and step numbers that a cancel changes.