diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 07:11:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | ee316b57d58c91e103210b1adc428f618f630002 (patch) | |
| tree | 35bed7b2a957a70ece3aecd86784e9544d2c40b4 /src/ninep | |
| parent | e3e698fd14c9c7eb6906c95beeeb8e12f08f8b94 (diff) | |
| download | pardes-ee316b57d58c91e103210b1adc428f618f630002.tar.gz pardes-ee316b57d58c91e103210b1adc428f618f630002.zip | |
A line address to no open pane, `@p77:3`, is a miss said as one, not the active pane
`@p<serial>:<line>` goes the line way (parsePathLine), where a serial
naming no pane quietly did nothing and look read back the active pane.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep')
| -rw-r--r-- | src/ninep/ctl.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index b6fefa01..47ac2846 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -1963,4 +1963,9 @@ test "@p<serial>:<address> takes any sam address; a miss and an unknown serial a _ = wr(p, root, "@p999:/foo/\n"); try testing.expect(th.logHas(p, "look: no pane @p999")); try testing.expectEqualStrings("", rd(p, root, 0, 64).bytes); + // A line address to no pane is a miss too, not the active pane. + _ = wr(p, root, "@p77:1\n"); + try testing.expect(th.logHas(p, "look: no pane @p77")); + try testing.expectEqualStrings("", rd(p, root, 0, 64).bytes); } + |
