szn

Bug 234 — Copy mode incremental search fails across soft-wrapped line boundaries

234. Copy mode incremental search fails across soft-wrapped line boundaries

File: src/mode_copy.zig:600–650 Severity: HIGH Status: ✅ FIXED

Copy mode search (searchForward/searchBackward) uses lineBytes to fetch single physical grid lines, iterating over physical line counts.

Impact: Incremental search fails to match search queries (such as long URLs or phrases) that soft-wrap across terminal edges.

Fix: Update lineBytes to inspect line.wrapped and concatenate cells from contiguous wrapped physical lines into line_buf before performing std.mem.indexOf.