diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 00:49:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:21:29 -0300 |
| commit | d2a066ea4ffe4388fe0da71bd8389649ac59b73f (patch) | |
| tree | 7fd1c14031fae112711244e62631db6e8ab7ed47 /src/tui | |
| parent | 9f2d43fb16720782b0dbf2f78e3121194b4efdc2 (diff) | |
| download | pardes-d2a066ea4ffe4388fe0da71bd8389649ac59b73f.tar.gz pardes-d2a066ea4ffe4388fe0da71bd8389649ac59b73f.zip | |
host_io: the image, PDF and syntax subsystems a session draws with start and stop in one place (startWorkers, stopWorkers), where the tty's local session, the window's session and its test grid each started them and deferred their stop in eleven lines of their own
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/tui')
| -rw-r--r-- | src/tui/tui.zig | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 8b4de782..d0e923a1 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -1605,17 +1605,8 @@ fn localSession( options.tree_sitter_allocator = allocs.tree_sitter; options.frame_allocator = allocs.frame; - pardes.image.start(io, allocs.image); - if (comptime pardes.pdf_enabled) pardes.pdf.start(allocs.pdf); - // Pages render on lanes off the loop (pdf_view.workers). - if (comptime pardes.pdf_enabled) pardes.panes.Pdf.workers = io; - pardes.syntax.start(allocs.tree_sitter); - defer { - pardes.image.stop(); - if (comptime pardes.pdf_enabled) pardes.panes.Pdf.dropKept(); - if (comptime pardes.pdf_enabled) pardes.pdf.stop(); - pardes.syntax.stop(); - } + host_io.startWorkers(io, allocs); + defer host_io.stopWorkers(); var core = if (upgrade.resumed) |*rec| try upgrade.load(gpa, allocs.pardes, options, rec) |
