From c27e38eb3e97fd505255ee4b42d32ddc77c58ced Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 05:16:33 -0300 Subject: /commands takes each word's own doc comment, whole, without citations Repl showed Joincol's first line and Joincol another's, because a comment had drifted above the wrong declaration in builtins.zig; Kill's was cut mid-sentence and Exit's cited exec.c:892. The drifted line is back on Joincol, a parenthesis citing source (.c, .zig) is dropped, and the first sentence is kept whole up to 240 bytes, then cut between words with an ellipsis. A test checks every description opens its own word's comment. Co-Authored-By: Claude Opus 5.5 --- test/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/fs.py') diff --git a/test/fs.py b/test/fs.py index 9fb560e0..b7e8adcc 100644 --- a/test/fs.py +++ b/test/fs.py @@ -276,7 +276,7 @@ def discovery(binary, embedded=False): # word, `arg` if it takes one, its ctl, a setting's values, then `-- ` what it does assert all(r.split()[2 if r.split()[1] == 'arg' else 1] in ('root', 'pane', 'both') for r in commands), commands assert row('Placement arg root acme,pardes'), commands - assert client.stat('/commands')['length'] == len('\n'.join(commands)) + 1 + assert client.stat('/commands')['length'] == len('\n'.join(commands).encode()) + 1 # bytes: a description may end in … client.write(f'/pane/{first}/ctl', b'Msg said through ctl\n') assert 'said through ctl' in ''.join(cell[0] for cell in client.screen()['cells']) assert set(client.list('/pane')) == {'new', str(fixture), str(first), str(second)} -- cgit v1.3