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

Fix editing after undo not clearing the change id #1574

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

Guldoman
Copy link
Member

@Guldoman Guldoman commented Aug 5, 2023

To reproduce:

  1. Open a doc
  2. Write a
  3. Save
  4. Undo
  5. Write b

The doc will say it's not dirty.

I don't like this change too much because of how we're exposing the undo stack. But it is what it is.

@jgmdev
Copy link
Member

jgmdev commented Nov 20, 2023

With this change redo (ctrl + y) keeps the document dirty.

@Guldoman
Copy link
Member Author

Should now behave better.
This moved the clean id reset operation up the chain, but it should be fine as we were already managing the redo stack there.

@adamharrison
Copy link
Member

Tested, looks good. Merging.

@adamharrison adamharrison merged commit f457bc3 into lite-xl:master Nov 29, 2023
10 checks passed
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Nov 30, 2023
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants