Repository navigation
Show a heading's link mark only on the heading itself, not on the section or widget it titles - #3971
Merged
Merged
Conversation
…tion or widget it titles Pressing `m` landed on a decision whose first child is a heading, and the heading's link mark appeared in the margin beside it, though the user had come to answer the decision, not to link to it. The mark showed while the user was anywhere its heading names: on the heading, or on the section, hgroup or widget whose address the link copies. It now shows on the heading itself (a fragment link to it, a tap, focus inside it) and under the pointer, as before. Enter on the section or widget still copies the link, and now stands the mark there with its result until the user moves; before, Enter added a reason for showing it that the next move cleared only because the location reader tracked the address too. The heading-link test asserts that being on the section shows no mark and that Enter shows it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 25, 2026
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pressing
mlands on a decision whose first child is a heading, and the heading's link mark appeared in the margin beside it, though the user had come to answer the decision, not to link to it. The mark showed while the user was anywhere its link points: on the heading, or on the section, hgroup or widget whose address it copies. It now shows on the heading itself (a fragment link to it, a tap, focus inside it) and under the pointer, as before.Enter on the section or widget still copies the link, and now shows the mark with its result until the user moves. A keyboard user who reaches a section through a contents link no longer sees the mark there; Enter copies, and the command reference names it.
tests/browser/test_render_heading_links.pynow asserts that being on the section shows no mark and that Enter shows it; the first assertion fails onmain.