fix: avoid libvaxis startup crash on windows with a dummy resize event

This commit is contained in:
CJ van den Berg 2024-06-08 16:41:46 +02:00
parent 961e5afe41
commit de25501053

View file

@ -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());