From 8b0b342f300c7ccf6b71994965cc03244545db04 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 01:20:23 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/pdf_view.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; -- cgit v1.3