summaryrefslogtreecommitdiff
path: root/test/kitty.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:55:26 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:02:08 -0300
commit7fb385cb7882f79bd448250b176f2d3a81de64f6 (patch)
tree780fc88e778de42722ec7377d554761b88af1991 /test/kitty.zig
parent1635d80290a48fddd4ae9f1de187e49cbd35f39b (diff)
downloadpardes-7fb385cb7882f79bd448250b176f2d3a81de64f6.tar.gz
pardes-7fb385cb7882f79bd448250b176f2d3a81de64f6.zip
terminal: resizeGrid takes the pane and the size, where it took an allocator too and threw it away (the emulator resizes with its state's own): the core's two calls (pardes.zig), the 9P pty's two and the kitty tests' two pass none
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/kitty.zig')
-rw-r--r--test/kitty.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/kitty.zig b/test/kitty.zig
index 737e8fbf..5531242e 100644
--- a/test/kitty.zig
+++ b/test/kitty.zig
@@ -580,7 +580,7 @@ test "kitty: an image follows its text when the shell scrolls, resizes and reflo
try std.testing.expectEqual(o.y + 2, (try r.placesOf(10))[0].y);
// A narrower pane reflows the text; the image stays on its row.
const pane = r.pane(0);
- terminal.resizeGrid(pane, gpa, 40, pane.rows);
+ terminal.resizeGrid(pane, 40, pane.rows);
const text = try terminal.screenTextAlloc(pane, r.frame.allocator());
var row: usize = 0;
var lines = std.mem.splitScalar(u8, text, '\n');
@@ -1106,7 +1106,7 @@ fn fuzzRun(seed: u64, steps: usize, trace: bool) !bool {
r.p.update(.{ .resize = .{ .cols = cols, .rows = rows, .cell_pixels = .{ .w = 1 + rng.uintLessThan(u16, 30), .h = 1 + rng.uintLessThan(u16, 60) } } });
r.drain();
},
- 1 => terminal.resizeGrid(r.pane(0), gpa, 1 + rng.uintLessThan(u16, 120), 1 + rng.uintLessThan(u16, 40)),
+ 1 => terminal.resizeGrid(r.pane(0), 1 + rng.uintLessThan(u16, 120), 1 + rng.uintLessThan(u16, 40)),
2, 3 => {
const drawn = try r.places();
if (trace) std.debug.print(" {d} places, {d} placements, {d} images\n", .{ drawn.len, r.placementCount(0), r.storage(0).images.count() });