diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-29 18:19:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-29 20:11:08 -0300 |
| commit | 8bad8e3701716a5f2d82d8255a39f3743b13fb96 (patch) | |
| tree | 894a4406c483a9659e7d4f5da6317284fedeb42b /src/9p.zig | |
| parent | 3d7215593cd0a042bd2cbe27e1dde98f63daeda2 (diff) | |
| download | pardes-8bad8e3701716a5f2d82d8255a39f3743b13fb96.tar.gz pardes-8bad8e3701716a5f2d82d8255a39f3743b13fb96.zip | |
views: a pane's slot for the view live when it is made is written too, and emptied when its view goes live, so a pane closed before that view parks again frees no selections that are not its slot's
installed() wrote the slots of the views not live and marked every open view's known, the live one's left as it was; and unpark() left a view's slot holding the selections it had just given the live body. A pane made, then closed while its view was still live and torn down after another went live (a Zerox twin closed at once, say) freed that view's slot: whatever the slot held, or the live body's selections a second time. A view's slot is now made fresh for the live view as for the others, and holds no selections while its view is live. Found by test/replicas.zig, whose replicas switch views on every input; the views unit tests and snapshots (views, views-pan, views-term) pass as they did.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/9p.zig')
0 files changed, 0 insertions, 0 deletions
