aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/lua_squeeze_rules.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lualib/lua_squeeze_rules.lua b/lualib/lua_squeeze_rules.lua
index d04352a68..5db715fb1 100644
--- a/lualib/lua_squeeze_rules.lua
+++ b/lualib/lua_squeeze_rules.lua
@@ -38,7 +38,12 @@ local function gen_lua_squeeze_function(order)
if type(first) == 'boolean' then
if first then
table.remove(ret, 1)
- task:insert_result(sym, 1.0, ret)
+
+ if type(ret[1]) == 'table' then
+ task:insert_result(sym, 1.0, ret[1])
+ else
+ task:insert_result(sym, 1.0, ret)
+ end
end
elseif type(first) == 'number' then
table.remove(ret, 1)