mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: if block in paste command was wrong
This commit is contained in:
parent
1ec9943af2
commit
2f784e7ae7
1 changed files with 4 additions and 4 deletions
|
|
@ -18,11 +18,11 @@ impl Manager {
|
||||||
let opt = opt.into() as Opt;
|
let opt = opt.into() as Opt;
|
||||||
|
|
||||||
let dest = self.cwd();
|
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_copy(&self.yanked, dest, opt.force, opt.follow);
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.file_cut(&self.yanked, dest, opt.force);
|
|
||||||
self.unyank(());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue