Skip to content

fix(fzf): let picker selection highlight win over metadata#233

Merged
barrettruth merged 1 commit intomainfrom
fix/compose-highlight-treatment
Apr 13, 2026
Merged

fix(fzf): let picker selection highlight win over metadata#233
barrettruth merged 1 commit intomainfrom
fix/compose-highlight-treatment

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

Highlighted picker segments can carry their own background ANSI through ansi_from_hl(), which lets row metadata like issue authors override the selected-row background in fzf-lua. The current renderer only strips backgrounds for a small branch-specific allowlist, so the same cursorline bug still shows up on usernames and other metadata segments.

Solution

Strip background ANSI from all highlighted entry segments in the shared fzf picker renderer so the selected row highlight wins consistently across issue, PR, commit, worktree, CI, and related picker rows. Add a regression spec that covers author and metadata segments in addition to the existing branch-focused case.

@barrettruth barrettruth merged commit c8f4f54 into main Apr 13, 2026
7 of 8 checks passed
@barrettruth barrettruth deleted the fix/compose-highlight-treatment branch April 13, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant