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.
This commit is contained in:
Tim Culverhouse
2025-02-14 22:44:27 -06:00
committed by Mitchell Hashimoto
parent 196bc55757
commit ccf72dfbf7

View File

@ -220,7 +220,7 @@ pub fn init(self: *Termio, alloc: Allocator, opts: termio.Options) !void {
.renderer_mailbox = opts.renderer_mailbox, .renderer_mailbox = opts.renderer_mailbox,
.surface_mailbox = opts.surface_mailbox, .surface_mailbox = opts.surface_mailbox,
.size = opts.size, .size = opts.size,
.backend = opts.backend, .backend = backend,
.mailbox = opts.mailbox, .mailbox = opts.mailbox,
.terminal_stream = .{ .terminal_stream = .{
.handler = handler, .handler = handler,