fix(keys): dont add (n) to keys id

This commit is contained in:
Folke Lemaitre 2023-03-25 09:56:10 +01:00
parent 32d5f4af2f
commit 9f9d733df9
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,9 @@ function M.parse(value)
if type(mode) == "table" then
---@cast mode string[]
table.sort(mode)
ret.id = ret.id .. " (" .. table.concat(mode, ", ") .. ")"
elseif mode ~= "n" then
mode = table.concat(mode, ", ")
end
if mode ~= "n" then
ret.id = ret.id .. " (" .. mode .. ")"
end
end