Markpad
Markpad copied to clipboard
fix: prevent large-file background loads from overwriting newer tab edits
Large Markdown files first render a preview chunk, then asynchronously load the complete HTML and raw content. The completion handler currently overwrites the tab whenever its path still matches, even if the user has edited it or entered edit/split mode meanwhile.\n\nScope: give each load a tab-local revision and apply the full result only if the request remains current, the tab is clean, and it remains preview-only.