From 9d9b745b3103e95b7f2b8ec8a65c149f61b7e4bb Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 16 May 2013 15:11:07 -0400 Subject: Allow empty tables as keychains if they have metatables; core/keys.lua --- core/keys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3