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.
pull/5776/head
Tim Culverhouse 2025-02-14 22:44:27 -06:00
parent b975f1e860
commit b7009202ce
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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,