From 1b12f7aadaf0e0a4570a5985900f61d0fb897f79 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:22:27 -0300 Subject: surface: a frame's images are a std.ArrayList(ImagePlace), where they were a slice of optionals grown by hand (appendImagePlace's doubling realloc, nimages beside it) whose slots were never null: every reader's `orelse continue` and `.?` go (gui, tui, terminal, TerminalImages, ninep/screen, test/pdf.zig, kitty and the two PDF benches); macos.zig's loop the same, passing ast-check but not built here Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/ninep/screen.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ninep/screen.zig') diff --git a/src/ninep/screen.zig b/src/ninep/screen.zig index c0251d80..95fe50a7 100644 --- a/src/ninep/screen.zig +++ b/src/ninep/screen.zig @@ -293,8 +293,8 @@ test "screen inspection preserves acknowledged presentation and the next real fr try testing.expectEqualDeep(expected.cell_diffs, actual.cell_diffs); try testing.expectEqual(expected.previous_cells.len, actual.previous_cells.len); try testing.expectEqual(expected.cells.len, actual.cells.len); - try testing.expectEqual(@as(usize, 0), expected.nimages); - try testing.expectEqual(@as(usize, 0), actual.nimages); + try testing.expectEqual(@as(usize, 0), expected.images.items.len); + try testing.expectEqual(@as(usize, 0), actual.images.items.len); for (expected.cells, actual.cells) |*left, *right| try testing.expect(left.visuallyEqual(right)); for (expected.previous_cells, actual.previous_cells) |*left, *right| try testing.expect(left.visuallyEqual(right)); if (phase == 1 and transition != .off) try testing.expect(expected.panelTracks().len > 0); -- cgit v1.3