Skip to content

Commit

Permalink
ensure that Layer:_normalize_input returns non-nil tables (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
edlandm authored Mar 14, 2024
1 parent 1ce9ee3 commit 7eb7d88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/hydra/layer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7eb7d88

Please sign in to comment.