File: src/grid.zig:148–153 Status: ✅ FIXED — added errdefer to pop/deinit on error.
src/grid.zig:148–153
history.pop() removes a line, then lines.insert(0, line). If insert fails, the popped line is leaked — no errdefer to deinit it on error propagation.
history.pop()
lines.insert(0, line)
insert
errdefer