tom_undo 0.1.0
tom_undo: ^0.1.0 copied to clipboard
The undo/redo stack every undo history runs on: a bounded stack that applies an entry before moving it, so a failing undo stays undoable, and composite steps that put back what they applied when one p [...]
Changelog #
0.1.0 #
TomUndoStack<E>: bounded, a push clears redo, and an entry is applied first and moved second, so a failed undo leaves the history as it was; synchronous and asynchronous application, andpopNewestfor merging an act into the one before it.tomApplyAllandtomApplyAllAsyncapply a composite step atomically, putting back what they applied when an item throws. Taken out oftom_forge_core(where it wasForgeUndoStack,forgeApplyAll,forgeApplyAllAsync) before its first release.