summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig5
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,
}