diff --git a/build.zig.zon b/build.zig.zon index 91b4e9f..8d2df37 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -15,8 +15,8 @@ .hash = "dizzy-1.0.0-q40X4YCRAAAGYO9QOZiYYSOwiiFlqZlecMuQcxPiBcXM", }, .thespian = .{ - .url = "https://github.com/neurocyte/thespian/archive/9af61100d08d79ec52e98fa34ea36611dcc1c361.tar.gz", - .hash = "thespian-0.0.1-owFOjlgaBgAwqxQerLVXpy7blPPZjTqdfH9MLf9_v7dt", + .url = "git+https://github.com/neurocyte/thespian#f2980d3a747abdf0d18a01596dd8b953dd3e6243", + .hash = "thespian-0.0.1-owFOjk0aBgC8w9ibeiVdhftyEIaVIHCnubsJWfkktE8v", }, .themes = .{ .url = "https://github.com/neurocyte/flow-themes/releases/download/master-952f9f630ea9544088fd30293666ee0650b7a690/flow-themes.tar.gz", diff --git a/src/Project.zig b/src/Project.zig index f9da66c..8e97119 100644 --- a/src/Project.zig +++ b/src/Project.zig @@ -231,6 +231,8 @@ pub fn restore_state_v0(self: *Self, data: []const u8) error{ JsonIncompatibleType, NotAnObject, BadArrayAllocExtract, + InvalidMapType, + InvalidUnion, }!void { tp.trace(tp.channel.debug, .{"restore_state_v0"}); defer self.sort_files_by_mtime(); diff --git a/src/renderer/vaxis/renderer.zig b/src/renderer/vaxis/renderer.zig index 0c5983d..44b121d 100644 --- a/src/renderer/vaxis/renderer.zig +++ b/src/renderer/vaxis/renderer.zig @@ -58,6 +58,8 @@ pub const Error = error{ JsonIncompatibleType, NotAnObject, BadArrayAllocExtract, + InvalidMapType, + InvalidUnion, } || std.Thread.SpawnError; pub fn init(allocator: std.mem.Allocator, handler_ctx: *anyopaque, no_alternate: bool, _: *const fn (ctx: *anyopaque) void) Error!Self { @@ -180,7 +182,7 @@ fn handleSegfaultPosixNoAbort(sig: i32, info: *const std.posix.siginfo_t, ctx_pt pub fn run(self: *Self) Error!void { self.vx.sgr = .legacy; - self.vx.conpty_hacks = true; + self.vx.enable_workarounds = true; panic_cleanup = .{ .allocator = self.allocator, .tty = &self.tty, .vx = &self.vx }; if (!self.no_alternate) self.vx.enterAltScreen(self.tty.anyWriter()) catch return error.TtyWriteError; @@ -639,7 +641,7 @@ const Loop = struct { switch (builtin.os.tag) { .windows => { var parser: vaxis.Parser = .{ - .graphemes = &self.vaxis.unicode.graphemes, + .grapheme_data = &self.vaxis.unicode.width_data.graphemes, }; const a = self.vaxis.opts.system_clipboard_allocator orelse @panic("no tty allocator"); while (!self.should_quit) { @@ -648,7 +650,7 @@ const Loop = struct { }, else => { var parser: vaxis.Parser = .{ - .graphemes = &self.vaxis.unicode.graphemes, + .grapheme_data = &self.vaxis.unicode.width_data.graphemes, }; const a = self.vaxis.opts.system_clipboard_allocator orelse @panic("no tty allocator"); diff --git a/src/renderer/win32/renderer.zig b/src/renderer/win32/renderer.zig index a56adb7..a4d8ed8 100644 --- a/src/renderer/win32/renderer.zig +++ b/src/renderer/win32/renderer.zig @@ -36,6 +36,8 @@ pub const Error = error{ JsonIncompatibleType, NotAnObject, BadArrayAllocExtract, + InvalidMapType, + InvalidUnion, } || std.Thread.SpawnError; pub const panic = messageBoxThenPanic(.{ .title = "Flow Panic" }); diff --git a/src/shell.zig b/src/shell.zig index 5869a3d..3e316ab 100644 --- a/src/shell.zig +++ b/src/shell.zig @@ -27,6 +27,8 @@ pub const Error = error{ JsonIncompatibleType, NotAnObject, BadArrayAllocExtract, + InvalidMapType, + InvalidUnion, }; pub const OutputHandler = fn (context: usize, parent: tp.pid_ref, arg0: []const u8, output: []const u8) void;