core: fix windows compile regression from #4021

pull/4212/head
Jeffrey C. Ollie 2024-12-31 12:56:18 -06:00
parent eaa872216b
commit cf34ffa28e
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 7 additions and 1 deletions

View File

@ -4242,7 +4242,13 @@ fn writeScreenFile(
const filename = try std.fmt.bufPrint(&filename_buf, "{s}.txt", .{@tagName(loc)});
// Open our scrollback file
var file = try tmp_dir.dir.createFile(filename, .{ .mode = 0o600 });
var file = try tmp_dir.dir.createFile(
filename,
switch (builtin.os.tag) {
.windows => .{},
else => .{ .mode = 0o600 },
},
);
defer file.close();
// Screen.dumpString writes byte-by-byte, so buffer it