You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Caution: UNTESTED!)
The example made little sense.
The Undo stack was used to run the commands, not just undo them. Renamed.
The commands had names, for no reason. They are now added directly to the stack.
The stack was edited (popped) while it was being iterated. The cmd variable was unused. Replaced with simple iterator.
The stack should be undone in reverse order. reversed() added.
The comments had grammatical errors. Corrected.
0 commit comments