Severity: MEDIUM
Status: ✅ FIXED
Files: src/grid.zig
In src/grid.zig:469 (num==0 early-return does not save the initializer when width==0):
var i = self.width - 1;
while (i >= x + num) : (i -= 1) { line.cells.items[i] = ...; }
const max_x = if (y == ey) @min(ex, self.width - 1) else self.width - 1;
@memset(line.cells.items[x .. max_x + 1], ...);
width==0 → 0-1 == 0xFFFFFFFF, immediate OOB; max_x+1 can wrap to 0 and slice x..0 panics.
Guard if (self.width == 0) return; and use width -| 1 in both functions. Audit sibling deleteChars/eraseChars which already use -|.