I'm coding to make my margin inidcators undoable. The margin indicators are tagged to text lines and displayed on an indicator margin. When a text line is deleted, the indicator margin is deleted as well. This is already implemented. However, I'm not able to undo it, making the indicator appear again. I'm been looking in the text change options. There is a property named 'Custom Data', which seems to be for this purpose. But there is no way to set it when a text line is deleted, as the text change option is created internally.
May I know how otherwise this could be implemented. Thanks!