Repository navigation
Repaint the keys when a Go-to filter's map empties or refills on a re-read - #5867
Merged
Merged
Conversation
…-read paint() decided whether the walk's rows needed the keys again by whether the whole map read empty, but since #5845 go-to reads every target and `kept` narrows it, so the rows read the filtered members. A scroll that took every hyperlink out of view under the hyperlink filter left Tab and Enter offered and "No visible hyperlinks." unshown until some later repaint. The test now reads the filtered members on both sides. Also points two comments at the code they describe: passages.js names `indexed`, which replaced `readPage`, and createHintSession's header says why members carry their codes now that no caller's read is a subset.
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.
Since #5845, Go-to reads every visible target and its filter narrows that reading through
kept. The rows that depend on the map (Tab, Shift+Tab, Enter, and the filter's "No visible …" status) read the narrowed members, butpaint()still decided whether those rows needed repainting by whether the whole reading was empty. So with a filter active, a scroll that moved every matching target out of view while other targets stayed left Tab and Enter offered and the "No visible …" status unshown until some unrelated repaint, and scrolling matches back in left the rows missing the same way.paint()now compares the filtered members on both sides (hints.js).The new case in
tests/runtime/hint-session.test.mjsarms a filtered map, re-reads it empty and then refilled, and checks that each re-read asks for a repaint. It fails onmain(no repaint after the map read one) and passes here.hint-session,hint-seatingandgo-to-keyspass, as does the browser type check.The commit also fixes two comments:
passages.jspointed atreadPage, which #5570 split intocollectandindexed, andcreateHintSession's header gave a reason for members carrying their codes that no caller has any more.