Deal with table.pack corner-cases properly (#10350)
c.f., https://github.com/koreader/koreader-base/pull/1603 for more details. Re: #9624
This commit is contained in:
1 parent
60849aed12
commit
53e6cf563a
6 files changed
+8
-8
No files matched your search
@@ -674,7 +674,7 @@ function Trapper:dismissableRunInSubprocess(task, trap_widget_or_string, task_re
|
||||
if task_returns_simple_string then
|
||||
return completed, ret_values
|
||||
else
|
||||
return completed, unpack(ret_values)
|
||||
return completed, unpack(ret_values, 1, ret_values.n)
|
||||
end
|
||||
end
|
||||
return completed
|
||||
|
||||
Reference in new issue
Block a user