diff --git a/yazi-core/src/manager/commands/paste.rs b/yazi-core/src/manager/commands/paste.rs index ac52b141..e12a670d 100644 --- a/yazi-core/src/manager/commands/paste.rs +++ b/yazi-core/src/manager/commands/paste.rs @@ -22,7 +22,7 @@ impl Manager { if cut { tasks.file_cut(src, dest, opt.force); } else { - tasks.file_copy(src, dest, opt.force); + tasks.file_copy(src, dest, opt.force, opt.follow); } } } diff --git a/yazi-core/src/tasks/tasks.rs b/yazi-core/src/tasks/tasks.rs index 0ca3e44f..3830f4ad 100644 --- a/yazi-core/src/tasks/tasks.rs +++ b/yazi-core/src/tasks/tasks.rs @@ -88,7 +88,7 @@ impl Tasks { } } - pub fn file_copy(&self, src: &HashSet, dest: &Url, force: bool) { + pub fn file_copy(&self, src: &HashSet, dest: &Url, force: bool, follow: bool) { for u in src { let to = dest.join(u.file_name().unwrap()); if force && u == &to {