From 553bf417f8eca8d60125fa3771dc7faa35c1db01 Mon Sep 17 00:00:00 2001 From: Levin Du Date: Tue, 17 Nov 2009 14:53:07 +0800 Subject: [PATCH] Fix awful.util.table.reverse Signed-off-by: Julien Danjou --- lib/awful/util.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/util.lua.in b/lib/awful/util.lua.in index 3c113978..a871c82a 100644 --- a/lib/awful/util.lua.in +++ b/lib/awful/util.lua.in @@ -326,7 +326,7 @@ function table.reverse(t) end -- add the remaining elements for k, v in pairs(t) do - if type(v) ~= "number" then + if type(k) ~= "number" then tr[k] = v end end