Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

fix: prevent large-file background loads from overwriting newer tab edits

Open PathGao opened this issue 4 months ago • 0 comments

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.

PathGao avatar Jul 24 '26 20:07 PathGao