Always include the selected or hovered tasks in the remove command

This commit is contained in:
sxyazi 2024-02-18 20:11:33 +08:00
parent fe76777552
commit 60df56b711
No known key found for this signature in database

View file

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