Ignore 0 secondary arg.

This commit is contained in:
Xinhao Yuan 2021-02-27 13:47:14 -05:00
parent f8ff725e9b
commit 2188a2a625
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ local function areas_to_command(areas, to_embed, root_area)
for _, share in ipairs(shares) do for _, share in ipairs(shares) do
if #arg_str > 0 then arg_str = arg_str.."," end if #arg_str > 0 then arg_str = arg_str.."," end
arg_str = arg_str..tostring(share[1]) arg_str = arg_str..tostring(share[1])
if not share[2] then if not share[2] or share[2] == 0 then
-- nothing -- nothing
elseif share[2] > 0 then elseif share[2] > 0 then
arg_str = arg_str.."_"..tostring(share[2]) arg_str = arg_str.."_"..tostring(share[2])