New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor states are not correctly restored after clearing undo stack (doesn't affect wodo) #903
Comments
Could you write a small test case / unit test and add it to tests/gui/TrivialUndoManagerTests.js, perhaps in a new list this.brokenTests? |
It's not really a high priority for me at the moment... |
Can you describe the issue a bit more, then I'll have a go at a unit test for the issue. |
Issue as I again understand it (sleeping works wonders): |
The undo stack can be cleared by calling
setInitialState()
on thegui.TrivialUndoManager
component. However, the cursor-extraction logic incorrectly assumes that lastOpMoveCursor
operation is the current location of the cursor, which is not the case if text editing has occurred.See comment and related block of code in e6cb301 and workaround code in pr #900 (
saveCurrentCursorPositions
).The text was updated successfully, but these errors were encountered: