chore(mappings): escape help keys

This commit is contained in:
Alexander Courtis
2022-09-04 14:07:04 +10:00
parent 57e055e835
commit 420c90943c

View File

@@ -13,7 +13,7 @@ for _, m in pairs(DEFAULT_KEYMAPS) do
local keys = type(m.key) == "table" and m.key or { m.key } local keys = type(m.key) == "table" and m.key or { m.key }
for _, key in ipairs(keys) do for _, key in ipairs(keys) do
local out = {} local out = {}
out.key = key out.key = string.format("`%s`", key)
max_key = math.max(#out.key, max_key) max_key = math.max(#out.key, max_key)
if first then if first then
out.short = m.desc.short out.short = m.desc.short