From 1e9bb9c14e5d1c32e2bae774805148b8554ea8fb Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 26 Nov 2026 15:05:42 -0300 Subject: addons/snake_shader: its test's window gives the theme's search hits, `hit` and `hit_current`, the two fields ABI 3.4 put in addon.Window (FP's krtvqvyq 2dae98b564e6: a kind's window holds the theme's hit colours, read by a PDF's search), so the addon's test compiles again (the final integration's frame gate, M3's mgate: build-debug and the ReleaseFast prefix both failed on `zig build install snake-shader veil -Dplatform=gui`, `addons/snake_shader/snake_shader.zig:545:14: error: missing struct field: hit`, and with no ReleaseFast prefix no perfab, perfops or timedemo ran); THE CAUSE: krtvqvyq added the two fields with no default and gave them in pdf.zig's test window, the one other literal of the struct; the snake shader's test, built only by the gui's `snake-shader` step (no tui gate builds it), was left without them; THE FIX: `.hit = .default, .hit_current = .default` in that literal (the snake draws no search hits); TEST CODE ONLY: no binary the frames or the install run changes; RUN: the gate's build-debug log above fails; `zig build snake-shader -Dplatform=gui` 7/7 tests now; a user could not hit it (a test), every gui build of the gate's step did; load 2.0 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- addons/snake_shader/snake_shader.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons') diff --git a/addons/snake_shader/snake_shader.zig b/addons/snake_shader/snake_shader.zig index 65e1dd44..cc715dd3 100644 --- a/addons/snake_shader/snake_shader.zig +++ b/addons/snake_shader/snake_shader.zig @@ -542,7 +542,7 @@ test "GPU fallback stays optional and dynamic board and post uniforms encode wit output.gpu = Capture.emit; output.gpu_ctx = &capture; var cells: [80 * 30]addon.c.pa_cell = @splat(std.mem.zeroes(addon.c.pa_cell)); - s.paint(.{ .cells = &cells, .stride = 80, .cols = 80, .rows = 30, .cell_w = 16, .cell_h = 32, .focused = true, .view = 1, .glyphs = false }, paint); + s.paint(.{ .cells = &cells, .stride = 80, .cols = 80, .rows = 30, .cell_w = 16, .cell_h = 32, .focused = true, .view = 1, .glyphs = false, .hit = .default, .hit_current = .default }, paint); try std.testing.expect(capture.called); try std.testing.expectEqualDeep(s, before); } -- cgit v1.3