mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Session::end_undo_group with cancel cancels the open undo group of every document. edit.undoGroup.end with cancel calls it, and so do a field scrub ended with Escape and a library style that fails to apply. The journal was then cut back to where the group of the last document in the document list began, not to where the first of the canceled groups began. When the group that began first belonged to an earlier document, the journal kept the commands of that group's edits, which the cancel had undone. After a scrub ended with Escape, which journals no end command, replaying the journal drew those edits again. Session::end_undo_group now cuts the journal back to the earliest start of the groups it cancels.