fix: avoid libvaxis startup crash on windows with a dummy resize event
This commit is contained in:
parent
961e5afe41
commit
de25501053
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ pub fn run(self: *Self) !void {
|
|||
|
||||
panic_cleanup_tty = &self.tty;
|
||||
if (!self.no_alternate) try self.vx.enterAltScreen(self.tty.anyWriter());
|
||||
try self.resize(.{ .rows = 0, .cols = 0, .x_pixel = 0, .y_pixel = 0 }); // dummy resize to fully init vaxis
|
||||
try self.query_resize();
|
||||
try self.vx.setBracketedPaste(self.tty.anyWriter(), true);
|
||||
try self.vx.queryTerminalSend(self.tty.anyWriter());
|
||||
|
|
Loading…
Add table
Reference in a new issue