From e2f292d869bf992bdf02084c886993666fd51c71 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 f2ff7697..8e046363 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