summaryrefslogtreecommitdiff
path: root/src/pdf_pane_integration_test.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf_pane_integration_test.zig')
-rw-r--r--src/pdf_pane_integration_test.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdf_pane_integration_test.zig b/src/pdf_pane_integration_test.zig
index eaebae5e..b290616e 100644
--- a/src/pdf_pane_integration_test.zig
+++ b/src/pdf_pane_integration_test.zig
@@ -111,7 +111,8 @@ test "PdfSections Look follows the exact owning PDF, not an equal path" {
const p = try Pardes.init(gpa, .{ .file = path, .cols = 80, .rows = 28 });
defer p.deinit();
const first = p.panes[0].?;
- pdf_pane.openSections(p, 0);
+ // Bare normal-mode `f` on a PDF dispatches the PdfSections builtin.
+ p.update(.{ .key = .{ .cp = 'f', .text = "f" } });
const first_output_id = first.search_pane orelse return error.MissingPdfSectionsOutput;
const first_output = p.panes[first_output_id].?;
try std.testing.expect(pdf_pane.isSectionsOutput(first_output));