diff --git a/yazi-core/src/manager/commands/paste.rs b/yazi-core/src/manager/commands/paste.rs index a968bbe5..e1612e37 100644 --- a/yazi-core/src/manager/commands/paste.rs +++ b/yazi-core/src/manager/commands/paste.rs @@ -18,11 +18,11 @@ impl Manager { let opt = opt.into() as Opt; let dest = self.cwd(); - if !self.yanked.cut { + if self.yanked.cut { + tasks.file_cut(&self.yanked, dest, opt.force); + self.unyank(()); + } else { tasks.file_copy(&self.yanked, dest, opt.force, opt.follow); } - - tasks.file_cut(&self.yanked, dest, opt.force); - self.unyank(()); } }