From 993741f050c2476afeebd478d995d880ef1dacea Mon Sep 17 00:00:00 2001 From: hankertrix <91734413+hankertrix@users.noreply.github.com> Date: Fri, 2 May 2025 13:58:59 +0800 Subject: [PATCH] fix --- yazi-core/src/tab/commands/copy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yazi-core/src/tab/commands/copy.rs b/yazi-core/src/tab/commands/copy.rs index cd013961..f1d43cb6 100644 --- a/yazi-core/src/tab/commands/copy.rs +++ b/yazi-core/src/tab/commands/copy.rs @@ -31,8 +31,8 @@ impl Tab { let mut s = OsString::new(); let mut it = self.selected_or_hovered().peekable(); if opt.hovered { - if let Some(hovered) = self.hovered() { - it = Box::new(hovered.map(|h| vec![&h.url]).into_iter()); + if let Some(h) = self.hovered() { + it = Box::new([&h.url, &h.url].into_iter()); } else { return }; } while let Some(u) = it.next() {