diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:55:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:02:08 -0300 |
| commit | 7fb385cb7882f79bd448250b176f2d3a81de64f6 (patch) | |
| tree | 780fc88e778de42722ec7377d554761b88af1991 /src/pardes.zig | |
| parent | 1635d80290a48fddd4ae9f1de187e49cbd35f39b (diff) | |
| download | pardes-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 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index fb26840b..2596e069 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -7319,7 +7319,7 @@ pub const Pardes = struct { // doc panes have no pty/emulator grid to reflow; just record // the size so bodyText renders the right number of rows if (pane.isTerminal()) { - panes.terminal.resizeGrid(pane, p.gpa, cols, rows); + panes.terminal.resizeGrid(pane, cols, rows); p.shell_rows.markStale(pane); // reflow moved every row p.emit(.{ .resize_pty = .{ .pane = @intCast(id), .cols = cols, .rows = rows } }); pane.fs.winsize = null; @@ -8731,7 +8731,7 @@ test "jump history terminal rectangle follows output and clears on reflow" { try std.testing.expectEqualStrings("alpha", try edit.selectionText(p, pane, pane.sel[0])); for (0..40) |_| p.update(.{ .output = .{ .pane = 0, .bytes = "more output\r\n" } }); try std.testing.expectEqualStrings("alpha", try edit.selectionText(p, pane, pane.sel[0])); - panes.terminal.resizeGrid(pane, p.gpa, pane.cols - 1, pane.rows); + panes.terminal.resizeGrid(pane, pane.cols - 1, pane.rows); try std.testing.expect(pane.pointerSelection(pane.sel[0]) == null); try std.testing.expectEqual(.none, pane.sel[0].state); } |
