summaryrefslogtreecommitdiff
path: root/src/ninep/tree.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep/tree.zig')
-rw-r--r--src/ninep/tree.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ninep/tree.zig b/src/ninep/tree.zig
index 7b107ea7..bd87f5bc 100644
--- a/src/ninep/tree.zig
+++ b/src/ninep/tree.zig
@@ -678,7 +678,7 @@ fn topSize(p: *Pardes, f: TopFile) u64 {
// one (a 9ns mount's splice), and a follower's reads go past it.
.log => 0,
.ctl => ctl.rootLen(p),
- .commands => ctl.commandsLen(),
+ .commands => ctl.commandsLen(p),
.focus => focus: {
if (p.header_focus) break :focus 0;
const pn = p.panes[p.active] orelse break :focus 0;
@@ -1192,6 +1192,8 @@ fn linesOpen(target: Target, req: Req) bool {
/// The editor's step: the last lines of closed opens run, each as a write
/// of its own; a refusal is the log's err, as no open is left to answer.
pub fn runClosedLines(p: *Pardes) void {
+ const taped = pardes.tape.enter(p, .run_closed_lines);
+ defer pardes.tape.leave(p, taped);
for (p.fs.closed_lines.items) |*line| {
defer line.bytes.deinit(p.gpa);
const t = Node.target(line.node) orelse continue;