Skip to content

TUI: fuzzy finder selection highlight disappears when scrolling down with mouse wheel #391

Description

@JDonaghy

Symptom

In the TUI fuzzy finder (Ctrl+P), scrolling down with the mouse wheel moves items but the selection highlight (caret) disappears once it passes the bottom of the visible area. Scrolling up works correctly.

Pre-existing bug — present on develop before the #380 picker_scroll extraction.

Likely cause

The hardcoded visible_rows = 20 in the picker scroll logic doesn't match the actual popup height, which depends on terminal size. When the terminal is smaller than 20 rows for the popup, picker_selected advances past the rendered area while picker_scroll_top thinks there are still 20 visible rows.

Proposed fix

Compute actual visible rows from the popup geometry at scroll time, or have the render path cache the visible row count for the scroll handler to read.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguiUI/rendering

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions