fix(scripts): default mappings should put a comma at the end of each line

This commit is contained in:
kiyan 2022-07-21 14:38:29 +02:00
parent 522bde4ea5
commit 08ab346f03

View File

@ -77,7 +77,7 @@ io.close(file)
-- lua
file = io.open("/tmp/DEFAULT_MAPPINGS.lua", "w")
io.output(file)
fmt = string.format(" { %%-%d.%ds %%s }\n", max_key_lua, max_key_lua)
fmt = string.format(" { %%-%d.%ds %%s },\n", max_key_lua, max_key_lua)
for _, m in pairs(outs_lua) do
io.write(string.format(fmt, m.key, m.action))
end