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 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