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.
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 = 20in 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_selectedadvances past the rendered area whilepicker_scroll_topthinks 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.