diff --git a/yazi-core/src/tab/commands/copy.rs b/yazi-core/src/tab/commands/copy.rs index 196461a9..6024801e 100644 --- a/yazi-core/src/tab/commands/copy.rs +++ b/yazi-core/src/tab/commands/copy.rs @@ -31,7 +31,7 @@ impl Tab { let mut s = OsString::new(); let mut it = self.selected_or_hovered().peekable(); if opt.hovered { - if let Some(hovered) = self.hovered { + if let Some(hovered) = self.hovered() { it = once(hovered).peekable(); } else { return }; }