mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
refuse to create symbolic links for cut content
This commit is contained in:
parent
4a8cf212f9
commit
46f8216831
1 changed files with 6 additions and 1 deletions
|
|
@ -110,7 +110,12 @@ impl Executor {
|
|||
}
|
||||
"symlink" => {
|
||||
let dest = cx.manager.cwd().to_owned();
|
||||
let (_, src) = cx.manager.yanked();
|
||||
let (cut, src) = cx.manager.yanked();
|
||||
|
||||
// Cut doesn't conform to the convention for creating symlinks
|
||||
if *cut {
|
||||
return false;
|
||||
}
|
||||
|
||||
cx.tasks.file_symlink(
|
||||
src,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue