awful.widget.tasklist: Use pairs instead of ipairs
This is a weak table whose entries might be removed by the garbage collector. I'm not sure if this will every cause problems, but it's better to be prepared for tables having "nil holes" (which would mean ipairs ignores some entries). Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
7eed74b814
commit
b7d398f339
|
@ -192,7 +192,7 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local function u()
|
local function u()
|
||||||
for s in ipairs(instances) do
|
for s in pairs(instances) do
|
||||||
us(s)
|
us(s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue