diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 01:20:23 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:20:23 -0300 |
| commit | 8b0b342f300c7ccf6b71994965cc03244545db04 (patch) | |
| tree | b82dc5543fe55b68373696aa820d9612c111adf1 /src | |
| parent | f0515f28bd28703da85fbe6a95c8e819792a6002 (diff) | |
| download | pardes-8b0b342f300c7ccf6b71994965cc03244545db04.tar.gz pardes-8b0b342f300c7ccf6b71994965cc03244545db04.zip | |
pdf_view.applyNormal: the pane's PDF state is the pointer the slot holds (the kinds line's `pdf: ?*State`), not a pointer to the slot: the editing line's one key layer rewrote the call on the older inline State, and the two met here
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src')
| -rw-r--r-- | src/pdf_view.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf_view.zig b/src/pdf_view.zig index 42d923ac..5a371720 100644 --- a/src/pdf_view.zig +++ b/src/pdf_view.zig @@ -2405,7 +2405,7 @@ fn movePage( /// asked for what a page cannot do (Last, the leader, the tag, a search). pub fn applyNormal(core: *pardes.Pardes, pane: *pardes.Pane, a: modal.Normal.Action) void { if (comptime !enabled) return; - const state = if (pane.pdf) |*pv| pv else return; + const state = pane.pdf orelse return; const gpa = core.pdf_gpa; const native = core.native_images; const cells: CellPixels = .{ .w = core.cell_pixels.w, .h = core.cell_pixels.h }; |
