diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:55:35 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:02:08 -0300 |
| commit | aac802c58937053a200b0392843195b128a21172 (patch) | |
| tree | 67ea31d4f5be6eb5b8ef8ea9ef301e3874b1cebd /src/mouse.zig | |
| parent | 7fb385cb7882f79bd448250b176f2d3a81de64f6 (diff) | |
| download | pardes-aac802c58937053a200b0392843195b128a21172.tar.gz pardes-aac802c58937053a200b0392843195b128a21172.zip | |
pdf: every by-value copy of a pane's PDF state (about 39 KB, its 256 raster slots) taken to read a field or two is a pointer capture, in panes, edit, mouse, tagline, look, exec, the core, 9P ctl, fs, draw, macos and the sections bench; the hot one is pdf_view.moving, which Pardes.continuous asks on every pass of the shell loop and which copied every PDF pane's state each time
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/mouse.zig')
| -rw-r--r-- | src/mouse.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mouse.zig b/src/mouse.zig index 69d1456e..51a566d9 100644 --- a/src/mouse.zig +++ b/src/mouse.zig @@ -1395,7 +1395,7 @@ fn dragRelease(p: *Pardes, button: Mouse.Button) void { fn chordCutPaste(p: *Pardes, cut: bool) void { const s = &p.drag.select; const pane = p.panes[s.id] orelse return; - if (comptime pdf_enabled) if (pane.pdf) |pv| { + if (comptime pdf_enabled) if (pane.pdf) |*pv| { if (!s.chorded) { s.chorded = true; pane.sel[sel_slot].state = .none; |
