diff options
Diffstat (limited to 'src/Kind.zig')
| -rw-r--r-- | src/Kind.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Kind.zig b/src/Kind.zig index 47384227..374a2d81 100644 --- a/src/Kind.zig +++ b/src/Kind.zig @@ -138,7 +138,7 @@ pub const Slot = struct { // jobs' inputs, its file's hash, a placeholder's record), and what // a frame makes (the thumb, the pointer, whether one was drawn: a // view's, never a step's). - .local = .{ "ops", "st", "gpa", "arena", "plain", "opened", "reloads", "jobs", "tokens", "record", "thumb_at", "thumb_span", "pointer", "painted", "over", "shadow", "used" }, + .local = .{ "ops", "st", "gpa", "arena", "plain", "file", "opened", "reloads", "jobs", "tokens", "record", "thumb_at", "thumb_span", "pointer", "painted", "over", "shadow", "used" }, }; /// Its kind's code here; null in a placeholder (`live` false: its kind /// not in the registry, its record kept for the day it comes) or a @@ -213,6 +213,9 @@ pub const Slot = struct { tail: Buf(160) = .{}, /// A replica's frame of it, as the authority painted it. shadow: ?*Shadow = null, + /// A client's join: its plain kind's file, until the pane is opened + /// from it (dump.plainHere). + file: ?[]u8 = null, /// Debug: the kind's allocations, which paint must leave as they are /// (the list the page allocator's: a region's first is slow in Debug). used: if (checked) std.ArrayList([]u8) else void = if (checked) .empty else {}, @@ -240,6 +243,7 @@ pub const Slot = struct { s.arena.deinit(); s.gpa.free(s.path); if (s.record) |r| s.gpa.free(r); + if (s.file) |f| s.gpa.free(f); s.* = undefined; } }; |
