3
Vote

Add an int MaxHistoryLength property to limit undo buffer size

description

If the limit is 10 actions, and you record 11th action, we just need to delete the first action from the beginning of the history linked list (and that's why it's a linked list, not a stack!!!)

comments