Skip to content

fix: keep loaded documents clean after normalization - #5097

Open
xhon-pelushi wants to merge 1 commit into
marktext:developfrom
xhon-pelushi:fix/5074-close-clean-tab
Open

fix: keep loaded documents clean after normalization#5097
xhon-pelushi wants to merge 1 commit into
marktext:developfrom
xhon-pelushi:fix/5074-close-clean-tab

Conversation

@xhon-pelushi

Copy link
Copy Markdown

Summary

  • After load-time markdown normalization, rebaseline editor history so an unmodified opened file stays clean.
  • Prevents the save/don't-save prompt when closing a tab that was never edited.

Fixes #5074

Test plan

  • Open a markdown file, make no edits, close the tab — no save dialog.
  • Edit then close — save dialog still appears.
  • Unit coverage in source-mode-dirty.spec.ts for load-time normalization rebaseline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] prompts to save / don't save even tho no changes made

1 participant