From b7d398f3392790176814a93f80211217dc808ec0 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 19 Nov 2015 20:13:37 +0100 Subject: [PATCH] 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 --- lib/awful/widget/tasklist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/widget/tasklist.lua b/lib/awful/widget/tasklist.lua index a7e9e9a8..a0605834 100644 --- a/lib/awful/widget/tasklist.lua +++ b/lib/awful/widget/tasklist.lua @@ -192,7 +192,7 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg end end local function u() - for s in ipairs(instances) do + for s in pairs(instances) do us(s) end end