From 276a060dee5c753b513a75cca0b2c942dfe540fd Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 12:24:12 -0300 Subject: A name cut across writes on one open is one name, applied once Each write to name was taken as a whole name, so a name a client wrote in two pieces renamed the pane twice, the first time to half a name. name's writes are now held per open, as exec's and ctl's lines are, until the newline or the close. Co-Authored-By: Claude Opus 5.5 --- src/ninep/tree.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ninep/tree.zig') diff --git a/src/ninep/tree.zig b/src/ninep/tree.zig index a8b86a96..4b52be51 100644 --- a/src/ninep/tree.zig +++ b/src/ninep/tree.zig @@ -998,7 +998,9 @@ fn linesFile(target: Target) bool { return switch (target) { .top => |f| f == .look or f == .exec or f == .ctl or f == .tagexec, .col => |c| c.file == .ctl or c.file == .exec, - .pane => |t| t.file == .look or t.file == .exec or t.file == .ctl or t.file == .tagexec, + // `name` too: one name, however its writes cut it, applied once + // its newline or its close comes. + .pane => |t| t.file == .look or t.file == .exec or t.file == .ctl or t.file == .tagexec or t.file == .name, }; } -- cgit v1.3