From 43d1a1563b775e26b5e1580c399d813c0d1e3717 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 3 Feb 2023 15:27:01 -0800 Subject: [PATCH 1/2] 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 From ce16aef29f5321d3143e52f6e5ea49bc39dc32b6 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 3 Feb 2023 15:27:44 -0800 Subject: [PATCH 2/2] update changelog --- docs/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index 9b7521325..e56b79f50 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -36,6 +36,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ## New Plugins ## Fixes +- `seedwatch`: fix parameter parsing when setting targets ## Misc Improvements