diff options
Diffstat (limited to 'src/file_watch.zig')
| -rw-r--r-- | src/file_watch.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_watch.zig b/src/file_watch.zig index 812c1791..1e8c450a 100644 --- a/src/file_watch.zig +++ b/src/file_watch.zig @@ -414,7 +414,7 @@ pub fn watchPane( pardes.turn.yield(); defer pardes.turn.back(); const stat = @import("fs.zig").statPath(std.Io.Threaded.global_single_threaded.io(), watched_path, .{}) catch null; - const dir = if (stat != null and stat.?.kind == .directory) watched_path else std.fs.path.dirname(watched_path) orelse "."; + const dir = if (stat != null and stat.?.kind == .directory) watched_path else std.Io.Dir.path.dirname(watched_path) orelse "."; var dir_buf: [4096:0]u8 = undefined; if (dir.len >= dir_buf.len) return; @memcpy(dir_buf[0..dir.len], dir); @@ -864,9 +864,9 @@ test "theme watch reloads valid ZON and keeps the last theme across a bad save" const gpa = std.testing.allocator; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); - var base_buf: [std.fs.max_path_bytes]u8 = undefined; + var base_buf: [std.Io.Dir.max_path_bytes]u8 = undefined; const base_len = try tmp.dir.realPath(io, &base_buf); - const path = try std.fs.path.join(gpa, &.{ base_buf[0..base_len], "mine.zon" }); + const path = try std.Io.Dir.path.join(gpa, &.{ base_buf[0..base_len], "mine.zon" }); defer gpa.free(path); var first = pardes.themes[0]; |
