Issue Description:
When active search highlighting (hlsearch) is present in the buffer, navigating the helptoc popup menu via J / K causes screen flickering and incorrect cursor movement when changing heading depth levels.
Steps to Reproduce:
test.md) with hierarchical headers:# level 1 a ## level 2 b ### level 3 c ### level 3 d ### level 3 e ### level 3 f
/level and press Enter). Ensure hlsearch is active.:HelpToc.J or K to navigate through the popup entries.Observed Behavior:
J or K causes the helptoc popup window to flicker/redraw.## level 2 b down to ### level 3 c):J: The cursor remains stuck at ## level 2 b.J: The cursor finally jumps to ### level 3 c.J to move from ### level 3 c down to ### level 3 d causes the window to flicker and the cursor to incorrectly jump back up to ## level 2 b.Expected Behavior:
helptoc navigation using J / K should smoothly move between heading items regardless of active search highlighting (hlsearch), without screen flickering or incorrect level jumps.
Environment:
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()