summaryrefslogtreecommitdiff
path: root/src/ninep/tree.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 12:24:12 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit276a060dee5c753b513a75cca0b2c942dfe540fd (patch)
tree16c558a5d4bcaaef587ec9060c1ba212c662678d /src/ninep/tree.zig
parentd191193a1e707a6bfd8fc8bbe1429dbc9f34676f (diff)
downloadpardes-276a060dee5c753b513a75cca0b2c942dfe540fd.tar.gz
pardes-276a060dee5c753b513a75cca0b2c942dfe540fd.zip
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 <[email protected]>
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 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,
};
}