mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix
This commit is contained in:
parent
adf9f18664
commit
9055ee7d22
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{borrow::Cow, ffi::{OsStr, OsString}, path::Path, iter::once};
|
||||
use std::{borrow::Cow, ffi::{OsStr, OsString}, path::Path};
|
||||
|
||||
use yazi_plugin::CLIPBOARD;
|
||||
use yazi_shared::event::CmdCow;
|
||||
|
|
@ -32,7 +32,7 @@ impl Tab {
|
|||
let mut it = self.selected_or_hovered().peekable();
|
||||
if opt.hovered {
|
||||
if let Some(hovered) = self.hovered() {
|
||||
it = once(hovered).peekable();
|
||||
it = Box::new(hovered.map(|h| vec![&h.url]).into_iter());
|
||||
} else { return };
|
||||
}
|
||||
while let Some(u) = it.next() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue