historyLen() guardhistoryLen() guardFile: src/mode_copy.zig:391, src/server/server.zig:419
Severity: LOW
Status: ✅ FIXED — the two remaining raw grid.history.items.len - grid.history_start subtractions (searchForward and tickAutoscroll) now use the underflow-guarded historyLen(). Regression test corrupts history_start past the array bounds and verifies no underflow panic.
Bug #271 replaced seven occurrences of grid.history.items.len - grid.history_start with historyLen(), but two call sites were missed: mode_copy.zig:391 (searchForward) and server.zig:419 (tickAutoscroll). Same potential integer-underflow panic if history_start ever temporarily exceeds items.len.