fix base46 colors not working in guisp opt #172

This commit is contained in:
siduck 2023-03-25 17:37:53 +05:30
parent 1c0da377cc
commit 2095bdd736

View file

@ -30,7 +30,9 @@ M.turn_str_to_color = function(tb)
for _, hlgroups in pairs(tb) do
for opt, val in pairs(hlgroups) do
if (opt == "fg" or opt == "bg") and not (val:sub(1, 1) == "#" or val == "none" or val == "NONE") then
if
(opt == "fg" or opt == "bg" or opt == "sp") and not (val:sub(1, 1) == "#" or val == "none" or val == "NONE")
then
hlgroups[opt] = colors[val]
end
end