Adding an undo action will clear out the redo buffer.