From 1835fba8ea417db89acc13db3df297011a8c642f Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sun, 3 Mar 2024 09:55:37 +0800 Subject: [PATCH] fix: remove redundant check to allow operations on the `shell` command with an empty file list --- yazi-core/src/tasks/tasks.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yazi-core/src/tasks/tasks.rs b/yazi-core/src/tasks/tasks.rs index 4656e7ae..22f6a6b8 100644 --- a/yazi-core/src/tasks/tasks.rs +++ b/yazi-core/src/tasks/tasks.rs @@ -69,9 +69,7 @@ impl Tasks { } pub fn file_open_with(&self, opener: &Opener, args: &[impl AsRef]) { - if args.len() < 2 { - return; - } else if opener.spread { + if opener.spread { self.scheduler.process_open(opener, args); return; }