From e9775eb2223d3a520def87dca318b46771e95b24 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 15 Aug 2022 20:40:16 -0400 Subject: [PATCH] Make shell-script-candidates work more --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index eeda230..44dc1ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,7 +67,8 @@ enum Commands { fn main() { // First, check if we are just getting candidates to run the program. kak_command_fifo is not needed for this let args = env::args().collect::>(); - if args.len() == 2 && args[1] == "shell-script-candidates" { + eprintln!("Len: {}, args: {:?}", args.len(), args); + if args.len() >= 2 && args[1] == "shell-script-candidates" { match kakplugin::generate_shell_script_candidates(Commands::VARIANTS) { Err(e) => eprintln!("{e:?}"), Ok(()) => {}