diff options
| author | Tim Culverhouse <tim@timculverhouse.com> | 2025-02-14 22:44:27 -0600 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-03-23 14:18:48 -0700 |
| commit | ccf72dfbf7a0eaeef1e9b05928d071b12bb0bbe8 (patch) | |
| tree | 75de53c8577ee7e93a3409b735d9d4849c2a1ca5 | |
| parent | 196bc55757f4d32dd58fb133dda2253d891511e4 (diff) | |
termio: use modified backend
In Termio.init, we make a copy of backend and modify it by calling
initTerminal. However, we used the original in the struct definition.
This lead to the pty being opened with a size 0,0.
| -rw-r--r-- | src/termio/Termio.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/termio/Termio.zig b/src/termio/Termio.zig index ab61ae4ca..8a2e6cc7a 100644 --- a/src/termio/Termio.zig +++ b/src/termio/Termio.zig @@ -220,7 +220,7 @@ pub fn init(self: *Termio, alloc: Allocator, opts: termio.Options) !void { .renderer_mailbox = opts.renderer_mailbox, .surface_mailbox = opts.surface_mailbox, .size = opts.size, - .backend = opts.backend, + .backend = backend, .mailbox = opts.mailbox, .terminal_stream = .{ .handler = handler, |
