From 4ddecbb6ee5bf51371ee0f2d748c25b95e9b10fd Mon Sep 17 00:00:00 2001 From: sxyazi Date: Tue, 2 Jan 2024 01:49:58 +0800 Subject: [PATCH] .. --- yazi-core/src/manager/commands/paste.rs | 2 +- yazi-core/src/tasks/tasks.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {