-
Notifications
You must be signed in to change notification settings - Fork 936
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
Undo in editor erases everything after page reload #964
Comments
This is 100% reproducible on my end. Thank you for the instructions. |
It appears that when loading up the initial code in the editor using CodeMirror, we dispatch a new (undoable) modification of the text. Thus, when the user hits 'undo', the editor undoes that text addition, which results in all code being removed. Relevant code: Looking into prepopulating the editor now without causing a new transaction to be put into the history stack. |
Seems to be fixed with the recent changes. |
Pressing undo (control/command z) after a reload results in a blank file, causing you to lose all your progress.
Expected behavior
To go back to the previous edit and if no previous edit is saved, to do nothing.
How to reproduce
As there is no file history, if you do not have a backup, you risk losing your game forever if you do not redo in time.
The text was updated successfully, but these errors were encountered: