summaryrefslogtreecommitdiff
path: root/src/inspector
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspector')
-rw-r--r--src/inspector/termio.zig8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/inspector/termio.zig b/src/inspector/termio.zig
index 5ab9d3cd4..49ab00ecd 100644
--- a/src/inspector/termio.zig
+++ b/src/inspector/termio.zig
@@ -197,7 +197,9 @@ pub const VTEvent = struct {
) !void {
switch (@TypeOf(v)) {
void => {},
- []const u8 => try md.put("data", try alloc.dupeZ(u8, v)),
+ []const u8,
+ [:0]const u8,
+ => try md.put("data", try alloc.dupeZ(u8, v)),
else => |T| switch (@typeInfo(T)) {
.@"struct" => |info| inline for (info.fields) |field| {
try encodeMetadataSingle(
@@ -284,7 +286,9 @@ pub const VTEvent = struct {
try std.fmt.allocPrintZ(alloc, "{}", .{value}),
),
- []const u8 => try md.put(key, try alloc.dupeZ(u8, value)),
+ []const u8,
+ [:0]const u8,
+ => try md.put(key, try alloc.dupeZ(u8, value)),
else => |T| {
@compileLog(T);