Add missing arguments to stylize()

This commit is contained in:
Iron_E 2020-07-16 08:59:09 -04:00
parent 3921d60476
commit 5e5b33165d
No known key found for this signature in database
GPG Key ID: B0B37DE7EDC2335F
1 changed files with 2 additions and 2 deletions

View File

@ -74,13 +74,13 @@ local function highlight(highlight_group, attributes) -- {{{ †
local style = attributes.style
if type(style) == 'table' then
-- Concat all of the entries together with a comma between before styling.
stylize(table.concat(style, ','))
stylize(highlight_cmd, table.concat(style, ','))
if style.color then -- there won't is a color for undercurl.
highlight_cmd[#highlight_cmd + 1] = ' guisp='..get(style.color, HEX)
end
else -- just style the single entry.
stylize(style)
stylize(highlight_cmd, style)
end
end