mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
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:

committed by
Mitchell Hashimoto

parent
196bc55757
commit
ccf72dfbf7
@ -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,
|
||||||
|
Reference in New Issue
Block a user