Closed KB1RD closed 4 years ago
Thanks to the new debug panel (dev branch), I have concluded that this appears to be (partially) due to corruption of the removal BST. Since the removal BST uses the same function (Document._mergeNode
), this will probably affect the Logoot and document BSTs in some scenarios. In other words, my algo is broken. Again.
A related issue that I was not aware of is fixed by https://github.com/KB1RD/matrix-notepad/commit/d1efc56bf193b0ab181c88b0a52e35fd60f7c4d8. This issue was caused by the node's removal offset being added to the node's known_position
. This is why I need to get my act together and set up unit tests!!!
Fixed and on dev (now merged with master)
Until I do some actual debugging, it's hard to say if this is one or multiple issues, but I have encountered removed text that I can't seem to get rid of. It happens when text from a large (multi-character) insertion is removed.