Files
Tom MoorandClaude Opus 5 096cfc72c7 fix: Contents highlight lost when scrolling deep headings (#13531)
The contents lists headings up to level four, but tracked the active heading
across every heading in the document. Scrolling into a level five or six
section selected a heading with no entry in the list, so the highlight
disappeared until the next listed heading came into view.

The level filter now runs once, up front, and the active heading tracking,
indentation base, empty check and render all read the same list. Prefix labels
are still computed over every heading so the numbering keeps matching the
document.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-23 09:50:54 -04:00
..