aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/keys.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-05-16 15:11:07 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-05-16 15:11:07 -0400
commit9d9b745b3103e95b7f2b8ec8a65c149f61b7e4bb (patch)
treecdd2f4658b21eb10db23873a38b7717edcfd9370 /core/keys.lua
parent1cadbc0ac380e633a178e310578df54cc0e257cc (diff)
Allow empty tables as keychains if they have metatables; core/keys.lua
Diffstat (limited to 'core/keys.lua')
-rw-r--r--core/keys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/keys.lua b/core/keys.lua
index 13459982..60f404a3 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -223,7 +223,7 @@ local function key_command(prefix)
end
local key_type = type(key)
if key_type ~= 'function' and key_type ~= 'table' then return INVALID end
- if key_type == 'table' and #key == 0 and next(key) then
+ if key_type == 'table' and #key == 0 and next(key) or getmetatable(key) then
gui.statusbar_text = _L['Keychain:']..' '..table.concat(keychain, ' ')
return CHAIN
end