On Wed, Mar 18, 2020 at 9:12 AM vitalije <[email protected]> wrote:
> Thanks for the detailed proof. There is one thing I would like to say > about making tree operations undoable. This might be off the topic, but > since you mentioned making this operation undoable, I wish to share some > thoughts about undo/redo code. > It's completely on topic. I have just created #1541 <https://github.com/leo-editor/leo-editor/issues/1541> for this. It should be done in Leo 6.3. At present Leo keeps instances of vnodes in its undo data records. > It keeps *references* to vnodes in undo records. The references are immutable. The vnodes themselves are mutable. I'm willing to consider saving (gnx, h, b) in undo data, but the present scheme preserves id(v) as well as v.gnx. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS0vGYRpkNbrA84ndCA8BnFvM1B7pwuGUi6PzbdPFU41TA%40mail.gmail.com.
