diff options
Diffstat (limited to 'runtime/session.zig')
| -rw-r--r-- | runtime/session.zig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/session.zig b/runtime/session.zig index e4eb0300..9c8446e3 100644 --- a/runtime/session.zig +++ b/runtime/session.zig @@ -73,6 +73,7 @@ pub fn Loop(comptime Frontend: type) type { o.tree_sitter_allocator = l.allocs.tree_sitter; o.frame_allocator = l.allocs.frame; fe.options(&o); + o.tape = pardes.tape.fromEnv(); l.core = if (upgrade.resumed) |*rec| try upgrade.load(l.gpa, l.allocs.pardes, o, rec) else if (o.load_path) |lp| blk: { @@ -127,8 +128,10 @@ pub fn Loop(comptime Frontend: type) type { // Its unit to each replica client, and theirs taken in. l.peers.boundary(l.core); // A pair's session with no daemon ends with its last link: - // nothing could attach to it again. - if (o.pair != null and daemon.link < 0 and l.peers.count() == 0) break; + // nothing could attach to it again; with one, when its last + // client closed its window (a close, not a loss), no Detach + // typed in any. + if (o.pair != null and l.peers.count() == 0 and (daemon.link < 0 or l.peers.closed)) break; fe.sent(); upgrade.locate(); // Asked in the step (the word), done between steps: the |
