summaryrefslogtreecommitdiff
path: root/src/ninep/pty.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 /src/ninep/pty.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 'src/ninep/pty.zig')
-rw-r--r--src/ninep/pty.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninep/pty.zig b/src/ninep/pty.zig
index be5bb83f..b8356681 100644
--- a/src/ninep/pty.zig
+++ b/src/ninep/pty.zig
@@ -1008,10 +1008,10 @@ test "a run's answer says cut when its output's start is gone, and reads a bound
// A resize between its start and end reflows the pins with the text.
h = sh.send(p, node);
sh.put(p, c ++ "one\r\ntwo\r\n");
- pardes.panes.terminal.resizeGrid(pane, gpa, 50, 20);
+ pardes.panes.terminal.resizeGrid(pane, 50, 20);
sh.put(p, d ++ prompt);
try testing.expectEqualStrings("exit 0\none\ntwo\n", sh.answered(p, node, h, into));
- pardes.panes.terminal.resizeGrid(pane, gpa, pane.cols, pane.rows);
+ pardes.panes.terminal.resizeGrid(pane, pane.cols, pane.rows);
// A full-screen program leaves nothing on the primary screen, and a D
// with no status is not a success.