summaryrefslogtreecommitdiff
path: root/core/Db.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Db.zig')
-rw-r--r--core/Db.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Db.zig b/core/Db.zig
index cbeee5fb..254eb4a7 100644
--- a/core/Db.zig
+++ b/core/Db.zig
@@ -329,7 +329,7 @@ fn importRecent(p: *Pardes, dir: []const u8) void {
var path_buf: [4200]u8 = undefined;
if (dir.len + "/recent".len >= std.Io.Dir.max_path_bytes) {
var said: [160]u8 = undefined;
- return p.setMessage(p.view().active, std.fmt.bufPrint(&said, "Recent: the files before the state file were not read: their directory's path is {d} bytes, too long", .{dir.len}) catch unreachable); // a number fits 160
+ return p.setMessage(.at(p.view().active), std.fmt.bufPrint(&said, "Recent: the files before the state file were not read: their directory's path is {d} bytes, too long", .{dir.len}) catch unreachable); // a number fits 160
}
pardes.turn.yield();
const listed = std.Io.Dir.cwd().readFileAlloc(io, std.fmt.bufPrint(&path_buf, "{s}/recent", .{dir}) catch "", gpa, .limited(recent_max)) catch null;