fix(Layer): `nil` rhs from `{callback = function}`

pull/17/head
Iron-E 2 years ago
parent 853a180365
commit 9665b84daf
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

@ -15,7 +15,7 @@ end
--- @param keymap table the keymap to unpack
--- @return function|string rhs, table options
local function unpack_keymap_rhs(keymap)
local rhs = keymap.rhs
local rhs = keymap.rhs or ''
keymap.rhs = nil
return rhs, keymap

Loading…
Cancel
Save