From 43d1a1563b775e26b5e1580c399d813c0d1e3717 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 3 Feb 2023 15:27:01 -0800 Subject: [PATCH] fix param parsing for setting targets --- plugins/lua/seedwatch.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lua/seedwatch.lua b/plugins/lua/seedwatch.lua index a72c65d47..991cd45bb 100644 --- a/plugins/lua/seedwatch.lua +++ b/plugins/lua/seedwatch.lua @@ -55,8 +55,8 @@ function parse_commandline(...) print_status() elseif command == 'clear' then set_target('all', 0) - elseif positionals[2] and positionals[3] then - set_target(positionals[2], positionals[3]) + elseif positionals[2] then + set_target(command, positionals[2]) else return false end