summaryrefslogtreecommitdiff
path: root/src/Kind.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Kind.zig')
-rw-r--r--src/Kind.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Kind.zig b/src/Kind.zig
index 14a3fc18..42205518 100644
--- a/src/Kind.zig
+++ b/src/Kind.zig
@@ -293,6 +293,8 @@ pub fn reopen(p: ?*Pardes, id: usize, s: *Slot, bytes: ?[]const u8) bool {
var cl: Call = .{ .p = p, .id = id, .slot = s };
const prev = cl.begin("open");
if (p) |core| if (core.kinds.byName(s.nameOf())) |k| {
+ // Its code: its library loaded at the first pane of its kind.
+ if (s.ops == null) s.ops = Addon.need(&core.kinds, k, &cl.refused);
// Its block made afresh by this open.
if (core.kinds.kinds[k].caps.plain) {
if (s.plain) |b| if (b.len > 0) s.gpa.free(b);