From 7eb7d88d8806080332abfd1074d2cac4e1e4c61e Mon Sep 17 00:00:00 2001 From: Miles Edland Date: Thu, 14 Mar 2024 16:19:01 -0700 Subject: [PATCH] ensure that Layer:_normalize_input returns non-nil tables (#33) --- lua/hydra/layer/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/hydra/layer/init.lua b/lua/hydra/layer/init.lua index 0fd4781..9d153d5 100644 --- a/lua/hydra/layer/init.lua +++ b/lua/hydra/layer/init.lua @@ -334,6 +334,8 @@ function Layer:_normalize_input(enter, layer, exit) end util.deep_unsetmetatable(k) r[i] = k + else + r[i] = {} -- later functions assume that r[1|2|3] are tables end end return r[1], r[2], r[3]