Skip to content
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

[BUG] Undo-ing changes in editor leads to a couple of incorrect behaviors #128

Open
SamiFawcett opened this issue Mar 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SamiFawcett
Copy link
Contributor

Environment (please complete the following information):

  • OS: Mac OS
  • Java version: openjdk 18.0.2.1 2022-08-18

Describe the bug

  1. Undo-ing all changes in an unsaved file or saved file prompts a save file prompt when it shouldn't.
  2. When you make a change to the file, then save that file, pressing ctrl+z to undo the last change will erase the contents of the file.

Explain Steps To Reproduce
Steps to reproduce the behavior:
For bug 1:

  1. Open editor
  2. Write EzAsm code
  3. Undo all changes in editor
  4. Exit editor

For bug 2:

  1. Open saved file
  2. Press ctrl+z

Expected behavior
For bug 1: The save prompt should not show when no changes have been made to the existing or non existing file (empty).
For bug 2: Ctrl+z on a reopened saved file shouldn't change the contents of the text area at all.

@SamiFawcett SamiFawcett added the bug Something isn't working label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant