diff --git a/yazi-core/src/tasks/tasks.rs b/yazi-core/src/tasks/tasks.rs index 4fc77c57..4656e7ae 100644 --- a/yazi-core/src/tasks/tasks.rs +++ b/yazi-core/src/tasks/tasks.rs @@ -58,9 +58,9 @@ impl Tasks { pub fn file_open(&self, hovered: &Url, targets: &[(Url, String)]) { let mut openers = BTreeMap::new(); - for (path, mime) in targets { - if let Some(opener) = OPEN.openers(path, mime).and_then(|o| o.first().copied()) { - openers.entry(opener).or_insert_with(|| vec![hovered]).push(path); + for (url, mime) in targets { + if let Some(opener) = OPEN.openers(url, mime).and_then(|o| o.first().copied()) { + openers.entry(opener).or_insert_with(|| vec![hovered]).push(url); } } for (opener, args) in openers {