fix: if block in paste command was wrong

This commit is contained in:
sxyazi 2024-02-17 20:42:23 +08:00
parent 1ec9943af2
commit 2f784e7ae7
No known key found for this signature in database

View file

@ -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(());
}
}