blob: 71eba8942bfcbf1a38e9a522c32f4ce2c96663fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Change handling of "argument table" in `lousy/util.lua` from
deprecated (Lua 5.0) to modern (5.1 and up) syntax.
written by Stjujsckij Nickolaj
https://bugs.gentoo.org/show_bug.cgi?id=354355
https://github.com/mason-larobina/luakit/commit/99b1bb394beff0dd872dd822c930d412b98d00a9
--- a/lib/lousy/util.lua
+++ b/lib/lousy/util.lua
@@ -98,9 +98,9 @@ end
-- @return A new table containing all keys from the arguments.
function table.join(...)
local ret = {}
- for i = 1, arg.n do
- if arg[i] then
- for k, v in pairs(arg[i]) do
+ for i, tbl in pairs({...}) do
+ if tbl then
+ for k, v in pairs(tbl) do
if type(k) == "number" then
rtable.insert(ret, v)
else
--
1.7.4.rc3
|