-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Incorrect cursor position after undo #38
Comments
@dmonad ping 👀 |
The following is my solution, mainly to change three places:
|
Any update on if there will be an official fix? |
@hamflx thanks for the provided details and patches. After combining them all together with the patch from #43 (comment) I got it working flawlessly. It also restores different types of selections correctly. By what it looks like all these patches together should resolve the following issues: #43, #101, #139. @dmonad is it worth starting new PR to address them as it looks like #118 is stale? |
Describe the bug
As soon as I create multiple nodes one after the other and want to undo this, the cursor stays in the last line. This issue can be reproduced on the official demo page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Cursor should be in the first line instead of the second.
Screenshots
https://user-images.githubusercontent.com/2500670/108116413-ce668880-709b-11eb-89ea-dff5a41d6c47.mp4
The text was updated successfully, but these errors were encountered: