fzt --tiered: link rows from the first row after the header, so search can't loop (FZT-52) #16

Merged
nelsong6 merged 1 commit from fzt-52-tree-header-fix into main 2026-10-30 00:15:54 -07:00
nelsong6 commented 2026-10-30 00:13:30 -07:00 (Migrated from github.com)

Fixes my own bug from #15: with a header, --tiered linked parent indices counting the header row, but the state sets header lines apart, so each link pointed one row too far and a folder's first child became its own parent. The first keystroke then spun forever in the ancestor walk (seen in the tmux palette: fzt at a full core until killed). Rows are now linked from the first row after the header lines; the stdin item building moved into stdinItems so the test drives the same path with a header, and the test fails on the old indexing. Work package: FZT-52 (https://openproject.home.romaine.life/wp/2122).

Fixes my own bug from #15: with a header, `--tiered` linked parent indices counting the header row, but the state sets header lines apart, so each link pointed one row too far and a folder's first child became its own parent. The first keystroke then spun forever in the ancestor walk (seen in the tmux palette: fzt at a full core until killed). Rows are now linked from the first row after the header lines; the stdin item building moved into `stdinItems` so the test drives the same path with a header, and the test fails on the old indexing. Work package: FZT-52 (https://openproject.home.romaine.life/wp/2122).
Sign in to join this conversation.
No description provided.