crabidy/cbd-tui
Test User 2e94760a69 cbd-tui: fix visual mode stranding the turnaround row (anchor the range)
The per-step paint toggled the row you arrived at, so going down then
back up toggled off the rows re-entered but never the furthest row you
turned around on — it stayed marked. Anchor the selection instead: on
entering visual mode record the anchor row, and on each move reconcile
marks to the contiguous range [anchor, cursor], toggling only the rows
whose membership changed. Moving back now cleanly reverses; jumps
reconcile the whole span. visual state becomes Option<usize> (the
anchor). Adds a regression test (down then fully up leaves only the
anchor); 90 cbd-tui tests green, clippy/fmt clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-24 16:29:26 +02:00
..
src cbd-tui: fix visual mode stranding the turnaround row (anchor the range) 2026-07-24 16:29:26 +02:00
Cargo.lock Add cbd-tui 2023-05-17 19:08:48 +02:00
Cargo.toml Implement the comprehensive CLI (stage 5) 2026-07-22 12:13:51 +02:00
build.rs Implement the comprehensive CLI (stage 5) 2026-07-22 12:13:51 +02:00
schema.graphql Add cbd-tui 2023-05-17 19:08:48 +02:00