mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
The user's selection came back only while the document revision was unchanged, so a Replace whose rollback raised the revision, or any edit that left the selection alone, kept the swapped object selected. DocState now counts selection changes (`selections`): every Session::select, Undo and Redo, leaving isolation, and any command or batch step that leaves another selection. A failed command that selected its ids first puts the count back with the selection. The selection comes back when the count, the selection, the isolation and the user's objects are unchanged; a symbol part needs the art unchanged.