Files
Outpost/Vendor/swift-markdown-engine/Sources
Puranjay Savar Mattas 3c3a5865bd fix: seed code-block cache on programmatic document load
updateCodeBlockSelection was only ever called from the two AppKit
text-delegate callbacks (textDidChange / selection-changed), never
from the programmatic rebuildTextStorageAndStyle load path. Line
number gutters (and the built-in copy-code button) stayed empty on a
cold document open until the user's first click or keystroke.
Threads the rebuild's own parsed document into the same call instead
of leaving cachedCodeBlockTokens empty until the next real edit.
2026-08-20 13:49:43 +01:00
..