diff options
Diffstat (limited to 'src/ninep/cols.zig')
| -rw-r--r-- | src/ninep/cols.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ninep/cols.zig b/src/ninep/cols.zig index 833b25c5..1445a3c3 100644 --- a/src/ninep/cols.zig +++ b/src/ninep/cols.zig @@ -60,11 +60,8 @@ pub fn headerText(p: *Pardes, serial: ?u32) ?[]const u8 { pub fn read(p: *Pardes, req: Req, serial: ?u32) Reply { applyTruncation(p, serial); - const text = headerText(p, serial) orelse return Reply.fail(req.tag, E.NOENT); - const out = p.fs.stage(p.gpa); // As a pane tag reads: the text alone, no newline after it. - out.appendSlice(p.gpa, text) catch return Reply.fail(req.tag, E.NOMEM); - return tree.stagedReply(p, req); + return tree.window(p, req, headerText(p, serial) orelse return Reply.fail(req.tag, E.NOENT)); } /// A write appends, as a pane tag's does; the tag is one line, so a newline |
