diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-15 18:59:33 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:14 -0300 |
| commit | b7914a0bd59334f618b62e0b98271211bbec46b9 (patch) | |
| tree | 53af62ce0ae022e580e35aadbd952e1656dcfa30 /src/panes.zig | |
| parent | 3f4f26e0e40d06427e72f72e760d01adcdc0326c (diff) | |
| download | pardes-b7914a0bd59334f618b62e0b98271211bbec46b9.tar.gz pardes-b7914a0bd59334f618b62e0b98271211bbec46b9.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, } |
