mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: remove redundant check to allow operations on the shell command with an empty file list
This commit is contained in:
parent
bd572706cd
commit
1835fba8ea
1 changed files with 1 additions and 3 deletions
|
|
@ -69,9 +69,7 @@ impl Tasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn file_open_with(&self, opener: &Opener, args: &[impl AsRef<OsStr>]) {
|
pub fn file_open_with(&self, opener: &Opener, args: &[impl AsRef<OsStr>]) {
|
||||||
if args.len() < 2 {
|
if opener.spread {
|
||||||
return;
|
|
||||||
} else if opener.spread {
|
|
||||||
self.scheduler.process_open(opener, args);
|
self.scheduler.process_open(opener, args);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue