Fix awful.util.table.reverse

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Levin Du 2009-11-17 14:53:07 +08:00 committed by Julien Danjou
parent 064f4c92fd
commit 553bf417f8
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ function table.reverse(t)
end end
-- add the remaining elements -- add the remaining elements
for k, v in pairs(t) do for k, v in pairs(t) do
if type(v) ~= "number" then if type(k) ~= "number" then
tr[k] = v tr[k] = v
end end
end end