Files
cappuccino/Foundation
David Richardson 41969c7f55 Undo functionality: verify behaviour, fix accidentally disclosed edge case
The TextEditor work list recorded redo as unreliable. Retesting proved that undo and redo work correctly.

Supporting investigation disclosed an edge case in CPUndoManager: when undo ran in the same run loop cycle as the change it reverted, it closed the open event grouping itself, but the run loop's scheduled close still ran and raised CPInternalInconsistencyException because no grouping was open.

* Foundation/CPUndoManager.j: Cancel the run loop's scheduled close when undo closes the event grouping itself.
* Tests/Foundation/CPUndoManagerTest.j: Add a test that undoes a change in the same run loop cycle and then redoes it, and correct the doIt selector registered by the undoIt helper.
* Tests/Manual/TextEditor/WORKLIST.md: Remove the redo entry recorded in error, and record undo and redo as tested.
2026-10-23 15:54:19 -06:00
..
2026-07-21 15:15:53 -06:00
2026-07-21 15:15:53 -06:00
2015-04-22 11:22:44 -07:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2021-08-19 10:56:13 +02:00
2026-06-16 20:20:25 +02:00
2026-03-24 21:34:39 +01:00
2010-12-26 01:34:37 +02:00
2026-08-04 18:09:27 -06:00