mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Always include the selected or hovered tasks in the remove command
This commit is contained in:
parent
fe76777552
commit
60df56b711
1 changed files with 2 additions and 1 deletions
|
|
@ -26,11 +26,12 @@ impl Manager {
|
|||
}
|
||||
|
||||
let mut opt = opt.into() as Opt;
|
||||
opt.targets = self.selected_or_hovered().into_iter().cloned().collect();
|
||||
|
||||
if opt.force {
|
||||
return self.remove_do(opt, tasks);
|
||||
}
|
||||
|
||||
opt.targets = self.selected_or_hovered().into_iter().cloned().collect();
|
||||
tokio::spawn(async move {
|
||||
let mut result = Input::_show(if opt.permanently {
|
||||
InputCfg::delete(opt.targets.len())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue