szn

Bug 92 — History lines not resized when terminal width changes

92. History lines not resized when terminal width changes

File: src/grid.zig:130–143 Severity: MEDIUM Status: ✅ FIXED — added history line resize loop after visible lines loop. Unit test added.

pub fn setSize(self: *Grid, new_width: u32, new_height: u32) Error!void {
    try self.normalize();
    self.width = new_width;
    for (self.lines.items) |*line| {   // only visible lines, not history
        // resize visible line cells
    }
    try self.resize(new_height);
}

When the terminal is resized, only visible grid lines are resized. Lines in self.history retain their original width. Scrolling up into history after a terminal resize shows wrong-width history lines, causing visual artifacts.