diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-15 18:59:33 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-15 20:15:48 -0300 |
| commit | 4ba8cd04fc33e03888b048332a8e8f2840f2ef73 (patch) | |
| tree | 53af62ce0ae022e580e35aadbd952e1656dcfa30 /src/panes.zig | |
| parent | 0a17403865d00ad69d658e97879188ca842f96e1 (diff) | |
| download | pardes-4ba8cd04fc33e03888b048332a8e8f2840f2ef73.tar.gz pardes-4ba8cd04fc33e03888b048332a8e8f2840f2ef73.zip | |
Clear previous selections before resolving Look destinations
Diffstat (limited to 'src/panes.zig')
| -rw-r--r-- | src/panes.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig index 59993148..c3fa732e 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -5371,7 +5371,10 @@ pub const Pdf = struct { const destination = owner.state.sectionDestination(core.pdf_gpa, at.col - 1) orelse return true; switch (destination) { - .internal => |internal| revealOutlineDestination(core, owner.pane, internal), + .internal => |internal| { + core.clearLookSelection(owner.pane); + revealOutlineDestination(core, owner.pane, internal); + }, .external => |uri| if (uri.len <= 256) core.emit(.{ .open_link = .from(uri) }), .none => unreachable, } |
